Can two or more iframes share the same session data?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.