| Author |
session variable lost
|
Jalal Mahmud
Greenhorn
Joined: Jul 07, 2009
Posts: 1
|
|
Hi
I have a j2EE Web application which deployed in a Web server I am maintaining. As a user log in from the home page,
http://someurl/
I create a session and keep the user name in that session. Then the next page http://someurl/mypage1/ shows some text. The session variable is still there.
When user clicks any of the links from this page and goes to the other pages,
e.g. http://someurl/mypage2/ or http://someurl/mypage3/ session variable is lost.
All the class files are in classes folder, and all the jsp files are in WebInf folder.
Interestingly it does not happen for Firefox, but it does happen for IE.
Any solution ?
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Jalal Mahmud wrote:Hi
Interestingly it does not happen for Firefox, but it does happen for IE.
If it's happening in one browser but not another, then I would assume that the issue is with the browser.
Have you verified that session cookies are enabled in MSIE?
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6601
|
|
Interestingly it does not happen for Firefox, but it does happen for IE.
Which means the session is not actually lost. This is a browser issue. Have a look at the HTML source that IE displays. That way you can confirm if the data reaches the browser
|
SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
 |
|
|
subject: session variable lost
|
|
|