Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Servlets
session timeout
kasthala shyam
Greenhorn
Posts: 3
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 35
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Clarification about session-timeout in web.xml?
Not able to get this !
session timeouts greater than 30 minutes?
Session timoeout on JSP
session timeout in DD
More...