This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am facing a session problem with IFRAME , i have two applications , i have used the IFRAME to include the Application 2 in Application 1 , while posting the request from first application through IFRAME , each and every request posted is treating as a new request , due to this i am facing session maintainence problem , i have stored some data in session , but each and every request the session is coming as a new session , so i am unable to retrieve the session data . I have tried with cookies , for cookies also i am facing the same problem. I have searched in google, i didn't find any solution . Kindly suggest me friends how to handle this situation.
Thanks for your reply, I am not sharing the session , i have included the application in IFRAME , it is just like a open application in seperate browser , the request coming from IFRAME is resetting every time means it is just like a new session or new request. So i need the synchronize the session/request.
But session sharing is working in some systems in IE browser. As per your statement it should not work in all the systems , i doesn't understand why it is happening so . Do you have any idea regarding this , and one more thing i am not sharing the session between the two applications . I am using the session of same application .
So the source of your IFrame is the same application? I thought you said "two applications"? Which statement is correct?
Joined: Nov 29, 2008
Source is different application. I think source is not a matter, whenever IFRAME point to application , session will intiate and if user gives the request on the rendered application again the session is intiating as new session . This is the exact problem.
Which session? The HTTP Session associated with the request to the application that includes the iframe will not change, regardless of what the source of the iframe is. The session associated with the request made from the iframe to the other application (defined as the source of the iframe) is completely unrelated to the first session.
Joined: Nov 29, 2008
I hope you understand almost my problem , yes exactly correct what you have mentioned , but the HTTP session associated with the request to the application that includes in the iframe is changing every time . I doesn't understand why it's happening so. And this is working for some systems and not for some systems.