A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
session timeout
kasthala shyam
Greenhorn
Joined: Jun 14, 2008
Posts: 3
posted
Jul 14, 2008 13:55:00
0
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
<session-config>
<session-timoeout>1</session-timoeout>
</session-config>
and also set the session timeout in the servlet as
session.setmaxInactiveInterval(60);
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
posted
Jul 14, 2008 19:26:00
0
If you have copy-pasted the code then there is typo in both cases:
(1) In the first case timeout is spelled wrong
<session-timoeout>1</session-timoeout>
(2) In the second case "m" in max needs to be capital
session.setmaxInactiveInterval(60);
[ 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
Clarification about session-timeout in web.xml?
session timeout in DD
session timeouts greater than 30 minutes?
Session timoeout on JSP
Not able to get this !
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter