A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
How to use setMaxInactiveInterval()
Joined: Sep 07, 2007
Oct 12, 2007 06:12:00
can any one explain me about setMaxInactiveInterval() method.
i have used this method as
session = req.getSession(true);
but the problem is after 5 seconds, the session is still active.
i need assistance
Joined: Dec 11, 2004
Oct 12, 2007 06:33:00
Please check your private messages.
How to ask a question...
Simple Servlet Examples
Joined: Oct 26, 2006
Oct 16, 2007 22:11:00
By using setMaxInactiveInterval you are ensuring that the session is no longer valid after the specified time of inactivity. What you have done look ok.
What are you doing to
this out? Post all your code and explain.
Joined: Oct 17, 2007
Oct 17, 2007 06:08:00
Please give me the code fully, Bcoz your session inactive method id correct i think you have problem with your code
Thanks Regards <br />Gobinath.L
Author and ninkuma
Joined: Jan 10, 2002
Oct 17, 2007 08:08:00
Gobinath Manoj, please use real words when posting to the forums. Abbreviations such as "bcoz" in place of "because" only serve to make your posts more difficult to read and less likely to generate useful responses.
for more information.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: How to use setMaxInactiveInterval()
A doubt about sessionDestroyed method in HttpSessionListener
Doubt between setMaxAge() and setMaxInactiveInterval() method
Web Service Session Breakdown
2 Inconsistencies in session-timeout and setMaxInactiveinterval
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014