开发者

How to pass an IFRAME SESSION to the parent page?

开发者 https://www.devze.com 2022-12-20 22:19 出处:网络
Is it possible to pass a SESSI开发者_高级运维ON variable from am embedded IFRAME to the parent page?

Is it possible to pass a SESSI开发者_高级运维ON variable from am embedded IFRAME to the parent page?

Meaning:

<form>

<iframe>
upload image to fake AJAX.
With PHP, set $_SESSION to be the location of the temporary uploaded photo
</iframe>

<input type="submit" />  // will this form submit have the $_SESSION variable set from the IFRAME?

</form>


PHP sessions are, by default, implemented using cookies (which are per-domain).

You don't need to do anything explicit to share them between different frames (except keep them on the same domain).

0

精彩评论

暂无评论...
验证码 换一张
取 消