aspose file tools
The moose likes JSP and the fly likes session lost in client machine Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply 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: 6603
    
    1

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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
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
 
Similar Threads
distinguishing 2 browsers in the same session.
deploying war file in unix
Run applet from remote machine
Problem While Running Jsp Error Page.
error-page tag