File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: Feb 24, 2006
Posts: 6662

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:
subject: session lost in client machine
It's not a secret anymore!