User inactivity?

D

Dean J Garrett

We have a need to determine whether a user is inactive or not, and present a
pop-up to have them either logoff or renew the session. After 15 minutes of
inactivity, the pop-up would ask the user to click Cancel if they wish to
logoff, or click OK to renew the session. The pop-up would also say
something like "Your current session will expire in 2 minutes at 1:42pm".

Thanks!!
 
G

Guest

Hi,
This can be achieved(in a way) using javascript. Send the session time
out limit (for eg 15 minutes) to client side. start a javascript
window.setTimeout and keep decreasing the time for every second and once it
reaches zero fire an alert box. Even though the time out may not be exactly
same as the server' time out (there be 10 - 20 seconds mismatch depends on
network speed) this is an easy effective way.
Hope this helps.
Thanks,
Ravi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top