Forums Register Login

How to maintain session for 20 to 30 mimutes

+Pie Number of slices to send: Send
Hi,

Can any one suggest maintining session for 20 to 30 minutes using code not in XML.

Thaks,

Umesh
+Pie Number of slices to send: Send
Why do you want to set the session time out in the JSP?

It should be set in your application server.
+Pie Number of slices to send: Send
If you don't want to set session timeout in web.xml, you can set session timeout in your HttpSessionListener using the session.setMaxInactiveInterval() method, however, setting in web.xml is preferable.
Every plan is a little cooler if you have a blimp. And a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 891 times.
Similar Threads
session.getAttribute
page timeout
Session Timeouts - Websphere
Session Time out Issue
session becomes null after few seconds
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:55:54.