User inactivity?

Discussion in 'Microsoft Dot NET' started by Dean J Garrett, Jul 30, 2005.

  1. 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!!
     
    Dean J Garrett, Jul 30, 2005
    #1
    1. Advertisements

  2. Dean J Garrett

    Guest 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

    "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!!
    >
    >
    >
    >
    >
     
    Guest, Aug 1, 2005
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henke
    Replies:
    5
    Views:
    191
    Henke
    Dec 9, 2003
  2. Guest
    Replies:
    7
    Views:
    848
    ShaneB
    Nov 4, 2004
  3. Guest
    Replies:
    0
    Views:
    232
    Guest
    Dec 28, 2004
  4. enahar
    Replies:
    0
    Views:
    209
    enahar
    Mar 4, 2005
  5. Petterq

    Windows 7, crash after 20 min inactivity

    Petterq, Sep 28, 2009, in forum: Microsoft Dot NET
    Replies:
    1
    Views:
    670
    Jerry
    Sep 28, 2009
Loading...

Share This Page