Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session variable lost

 
Jalal Mahmud
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic