Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP- Frequent SESSION EXPIRY  RSS feed

 
RaviKanth Giddalur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I am facing the problem of session getting expired too early. Is there any way that My session not getting expired till I request to do so? I am executing JSPs on JBOSS server.
If any one help me out I will be most thankful.
[ July 06, 2003: Message edited by: RaviKanth Giddalur ]
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can increase the session expiration time using HttpSession's setMaxInactiveInterval.
It is not usually a good idea to always handle invalidation manually. What happens if someone closes the browser without leaving the site? You would have abandoned sessions lying around wasting space.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!