Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to maintain session for 20 to 30 mimutes

 
Umesh Kilkile
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any one suggest maintining session for 20 to 30 minutes using code not in XML.

Thaks,

Umesh
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to set the session time out in the JSP?

It should be set in your application server.
 
Ogeh Ikem
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't want to set session timeout in web.xml, you can set session timeout in your HttpSessionListener using the session.setMaxInactiveInterval() method, however, setting in web.xml is preferable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic