logout time @ browser or tab closing

Discussion in 'PHP' started by vetrivel, Nov 20, 2009.

  1. #1
    Hi,
    I am doing some stuff in PHP.
    When people log into my page ,i will show the logout button and so i can able to track the time of the logout.

    But how to capture the time when they simple close the browser ?
    Is it possible to do it php or js?
    i need to know the time of the logout whether it is directly from browser or by browser close.

    Any idea?
     
    vetrivel, Nov 20, 2009 IP
  2. cignusweb

    cignusweb Peon

    Messages:
    147
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    for this Please download the joomla and check how it's work. this is work on session with cookies.
     
    cignusweb, Nov 20, 2009 IP
  3. mukunthan

    mukunthan Active Member

    Messages:
    237
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Check with javascript "body onunload" event or Google it
     
    mukunthan, Nov 20, 2009 IP