views:

213

answers:

2

Hi folks, can 2 or more iframes share same session data ?

TIA

+3  A: 

Yes. If they are in the same web application they will share the same session

AlfonsoML
+3  A: 

Session data is stored by your server. Iframes are just "pages".

If the requests for both pages are served by the same server (or farm in the event of a suitably configured load-balanced environment), the requests have access to the same session data.

You can run into temporal issues in some circumstances; namely, if you set some session variable during the request for one page, but the other iframe expects that value to be set already, you won't have what you want.

JasonTrue