Html 如何将IFRAME会话传递到父页面?

Html 如何将IFRAME会话传递到父页面?,html,iframe,Html,Iframe,是否可以将会话变量从am embedded IFRAME传递到父页面 意思是: <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 t

是否可以将会话变量从am embedded IFRAME传递到父页面

意思是:

<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会话是使用每个域的cookie实现的


您不需要做任何明确的事情来在不同的帧之间共享它们,只需要将它们保持在同一个域上。

因此,您的意思是这将起作用。有什么安全问题我应该知道吗?除了通常的安全问题以外没有其他问题。