File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Session Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Problem" Watch "Session Problem" New topic

Session Problem

Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
How to set default time out using session
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
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é

Joined: Nov 24, 2005
Posts: 14688

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)

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Session Problem
It's not a secret anymore!