Please,give me an advise!

Results 1 to 3 of 3

Thread: Please,give me an advise!

  1. #1
    Svetlana Guest

    Default Please,give me an advise!

    Hello!<BR>In my project I need to store in database time when user was logged in and time when he was logged out. When there is no problems it works perfectly. But if for example connection with Internet was broken how can I save time when user stops using my page?<BR><BR>May be I need to rewrite time of logging out every minute? But how can I do it? Is there something like timer in asp?<BR><BR>Thanks ahead for advises

  2. #2
    Join Date
    Dec 1969

    Default RE: Please,give me an advise!

    Are you using the Session On End function in the global.asa to see when the user leaves? If not do it that way.<BR><BR>If that doesn&#039t work then you could run a script that tests to see if the client is still connected every ten minutes or so. Thay way if the connection is lost you can log the exit time to the nearest ten minutes.<BR><BR>There is a method called Response.IsClientConnected which you could use to achieve this.

  3. #3
    Svetlana Guest

    Default How can I count periods of time?

    Thanks for advise. At first I&#039ll try to use Session_OnEnd.<BR><BR>But in other way how can I count the time? Is there any clock objects?

Posting Permissions

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