aspose 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 Java 8 in Action this week in the Java 8 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: 14687
    
  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
 
Similar Threads
Advice on persisting complex state across multiple server trips
Field set in action method coming null in JSP
Alternative to Cookie?
Session problem in NetBeans
ASP