How to detect that a system(client) is idle in PHP

Discussion in 'PHP' started by shanu_040, Aug 9, 2007.

  1. #1
    I am writing first time to this forum. I need to know how to check that a client is in Idle state(Means mouse and key board is not working). I am developing a system which should be able to detect that a system is in idle state and after 10 mins of idle state..it should logout the person and update the database. I am using PHP 5.2.3.
     
    shanu_040, Aug 9, 2007 IP
  2. Chemo

    Chemo Peon

    Messages:
    146
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The easy way is to use a 10 minute TTL session lifetime (server side) and also set the cookie (not session cookie) to expire at the same time.

    Bobby
     
    Chemo, Aug 9, 2007 IP