Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session lost in client machine

 
Alan Yap
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I did a session.setAttribute("A","123") on one page and tried to access it via session.getAttribute("A") in another jsp page, it returned a null value.

This happens only in client machine (for eg. http://clientPC:8080/myApp) but not in the machine where I've installed Resin in.

Is there any setting or misconfiguration in the client machine that caused this error?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the isNew() method to find out if the session was lost in the first place. Also check if your browser supports cookies.
 
Alan Yap
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haven't tried isNew yet but browser used is IE6 and I've tried various "privacy" settings until the lowest (means accept all cookies).

This is the very first time I've encountered such problem after deploying my apps in previous customer's LAN. Really mind boggling indeed.

no problem with application scope variables though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic