• 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: 13071
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