This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 14687

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
Similar Threads
Alternative to Cookie?
Field set in action method coming null in JSP
Session problem in NetBeans
Advice on persisting complex state across multiple server trips