Time in & Time Out

Results 1 to 2 of 2

Thread: Time in & Time Out

  1. #1
    Join Date
    Dec 1969

    Default Time in & Time Out

    Hi<BR><BR>I want to calculate the time surfer browse the site.i.e The time starts when the surfer logs in end time ends when logs out or close the browser ..<BR>How to do this how can i check when browser is closed.<BR>

  2. #2
    Join Date
    Dec 1969

    Default Not really a reliable method to do this

    Session_OnEnd is unrelable and doesn&#039;t always fire on session timeout. It looks like asp101 has an article on logging when the user closes the browser:<BR><BR>http://www.asp101.com/articles/john/sessionsend/default.asp<BR><BR>This is javascript however so if javascript isn&#039;t enabled you&#039;re out of luck. Your best bet is to log when the user logged in, and have a field for last accessed. Then to do your calculation diffing the two values. This isn&#039;t perfect but it will give you an idea of how long the user was accessing your site.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts