This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sessions

 
Rajeev Iyer
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
Is it possible to change the time out value of sessions at runtime?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consulting the servlet API documentation we find this method in the HttpSession class:
setMaxInactiveInterval( int seconds );
Bill
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In some app servers you can set the servler expiration time by setting the properties.
Like Weblogic:
weblogic.httpd.session.timeoutSecs=12000
weblogic.httpd.session.invalidationIntervalSecs=6000
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic