File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes session lost in client machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "session lost in client machine" Watch "session lost in client machine" New topic
Author

session lost in client machine

Alan Yap
Ranch Hand

Joined: Feb 24, 2006
Posts: 32
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?


When I'm not coding.. I do THIS
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Use the isNew() method to find out if the session was lost in the first place. Also check if your browser supports cookies.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Alan Yap
Ranch Hand

Joined: Feb 24, 2006
Posts: 32
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session lost in client machine