File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Problem" Watch "Session Problem" New topic
Author

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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: http://aspose.com/file-tools
 
subject: Session Problem