The moose likes Servlets and the fly likes session timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session timeout" Watch "session timeout" New topic

session timeout

kasthala shyam

Joined: Jun 14, 2008
Posts: 3
Hi all,

How to set session timeout in a jsp page as well as a servlet.
I have set the session-timeout in web.xml as


and also set the session timeout in the servlet as


I am using websphere and the timeout was set as 40

but the session is not timing out.
what should i do now??
Am i wrong anywhere?
Thanks in advance.
Siddharth Naik
Ranch Hand

Joined: Apr 09, 2006
Posts: 35
If you have copy-pasted the code then there is typo in both cases:

(1) In the first case timeout is spelled wrong

(2) In the second case "m" in max needs to be capital
[ July 14, 2008: Message edited by: Siddharth Naik ]

Thanks<br />Sid
I agree. Here's the link: http://aspose.com/file-tools
subject: session timeout
Similar Threads
Not able to get this !
Clarification about session-timeout in web.xml?
session timeout in DD
session timeouts greater than 30 minutes?
Session timoeout on JSP