| Author |
Session lost because iframe
|
jingjinglili li
Greenhorn
Joined: Mar 21, 2012
Posts: 2
|
|
There is a page, which has a div block for showing iframe inside the page. They are both in same domain, and written using Velocity Template.
When loading the page, the session is created and with some important session data. After the iframe loaded, the session id is changed to a different value, and the important session data are lost.
Do you know how to keep the same session without being changed by the iframe?
Thank you very much,
Jing
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
jingjinglili li wrote:They are both in same domain
But are they in the same web application? Sessions will not be shared across different web apps.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
jingjinglili li
Greenhorn
Joined: Mar 21, 2012
Posts: 2
|
|
Yes, they are same web application. The iframe is used for an image slider show which using a JQery. Why the the slider is put into a iframe because the JQuery version causes conflict to the existing JQery version used by the original page.
Is there a way to keep the session without rewriting by the iframe? or I have to discard the iframe idea, and solve the JQery conflict problem for the web site?
Many thanks,
Jing
|
 |
 |
|
|
subject: Session lost because iframe
|
|
|