How to Destroy Session,

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malav123
    New Member
    • Feb 2008
    • 217

    How to Destroy Session,

    Hi,
    suppose User is login and if he closes window witout logout so in such situation i want to destoy the session of particular user as well as also wants to change the status in database.... I tried many things but i still don't get the desired solution.... so please give me solution for such Problem....
    thanks in advance....
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Sessions timeout (expire) after 20mins (default time) of inactivity.
    You can set that timer to lower if need be.

    You could also implement an "ajax" type solution that sends a "heartbeat" request back to the server as long as your user is on one of your pages.

    Comment

    Working...