• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Problem

 
Ram kanana
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set default time out using session
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean the session timeout due to inactivity? If so, check the
configuration options of the server you are using. The session timeout
is set there.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. The declarative way, in web.xml, using the <session-timeout>, inside <session-config>
(see the Servlet Specification for more)

2. The programmatic way, calling HttpSession.setMaxInactiveInterval(int)
(see the API for more)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic