471,350 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

User inactivity?

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!!


Jul 29 '05 #1
1 1817
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

"Dean J Garrett" wrote:
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!!


Aug 1 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Frank Esser | last post: by
17 posts views Thread by Alphonse Giambrone | last post: by
4 posts views Thread by Dominique Vandensteen | last post: by
1 post views Thread by Dean J Garrett | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.