Forums Register Login

Automatic Timeout

+Pie Number of slices to send: Send
There are two types of timeouts that I know that implement this feature.
One could be where you logged into a site and if you just let the screen sit there, it will automatically send you to a screen that said your session timed-out. Another one does not do it until you try to do something.
How do you implement both?
I am especially interested in the automatic one.
+Pie Number of slices to send: Send
 

Originally posted by Anthony Smith:
There are two types of timeouts that I know that implement this feature.
One could be where you logged into a site and if you just let the screen sit there, it will automatically send you to a screen that said your session timed-out. Another one does not do it until you try to do something.
How do you implement both?
I am especially interested in the automatic one.


Implementing the non-automatic one is easy. You don't have to do anything because it is built into the servlet engine. You can configure how long it takes for the session to expire in the web.xml file.
The automatic one is one that I'm not familiar with. However, it seems to me that you might be able to do something like this with javascript. Maybe something like setTimeout("doFunction()", "1800000"); This would execute doFunction() after 30 minutes.
a wee bit from the empire
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 816 times.
Similar Threads
How to Skip automatic struts validation if more than 1 submit button present?
Automatic Mail sending Process...
48 hours rule, pls recomment
Automatic topic suppression
How to remove old 'if' conditions programatically
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:16:35.