• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

session is invalid

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
reply
    Bookmark Topic Watch Topic
  • New Topic