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 is invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "session is invalid" Watch "session is invalid" New topic

session is invalid

Daniel Washington
Ranch Hand

Joined: Oct 26, 2002
Posts: 53
I deploy a domain in my pc,and run well.
at the meaning time ,I change the PC TIME from 2005-11-16 to 2006-1-16,
then ,all the jsp pages using SESSION Object was wrong ,because the session is null.

so I guess maybe the server compare the new time to the beginning time,thought the session has last for 2 monthes, so the session is invalid .
but i changed the tag <session-timeout> in the config.xml of weblogic server,restart the server,it doesn't work.

Does anybody know these problem?
thx and bow!

IBM 141<br />IBM 285,286<br />IBM 700
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Yes you got it right.

What do mean by saying, "It didn't work"? Actually when you stop the server and start it again then it should create some new sessions for users. It should work fine with the new system time.

You change the session time-out value to __ ? Moreover, setting value to -1 means session would never expire.
Daniel Washington
Ranch Hand

Joined: Oct 26, 2002
Posts: 53
sorry about my explanation.
"it doesn't work" means after I changed <session-timeout> value to -1,
and the weblogic server restart too.And I repeat the above operations:
first login in the web site,the session is not null surely,then change the
system time ,the jsp pages exception happen.
what i thought is maybe one of the two reason can explain these scene:
1) the value of -1 for <session-timeout> cannot solve the problem in my case.
2) when i login in web site in 2005-11-16,the session is taged the timestamp or unique id somewhat by weblogic server, and i change time to 2006-1-16,although the session.isvalid() return true,but the session id changed??? (it seems the reason is eisegesised)
I agree. Here's the link:
subject: session is invalid
jQuery in Action, 3rd edition