开发者

How to pass an IFRAME SESSION 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜