Search the web
Sign In
New User? Sign Up
asp-FAQ · Active Server Pages - FAQ
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
storing the end time of the user into databse   Message List  
Reply | Forward Message #15 of 19 |
[asp-FAQ] Don't rely on Session_Close

Hi Ajit,

> I want to store the end time of the user. I have
> implemented this with exit button. On the click
> event of button, a logout.asp file is called and
> end time will be stored. But when the user closes
> the window with Alt+F4 or Ctrl+Alt+del it is not
> working. Please give me some suggestion.

Don't rely on the Session_Close event. Rather, if you know what your
timeout is, just set the 'logout' for the session as an explicit time
as a difference between their last 'event' (this click) and now:
dLogout = dateadd("n", session.timeout, now)

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
You don't have to get it right the first time.
-- Barbara Sher





Sun Jan 25, 2004 3:52 pm

shawn_ra
Online Now Online Now
Send Email Send Email

Forward
Message #15 of 19 |
Expand Messages Author Sort by Date

Hi, I want to store the end time of the user. I have implemented this with exit button. On the click event of button, a logout.asp file is called and end time...
ajitzee2000
Offline Send Email
Jan 21, 2004
12:30 pm

Hi Ajit, ... Don't rely on the Session_Close event. Rather, if you know what your timeout is, just set the 'logout' for the session as an explicit time as a...
Shawn K. Hall
shawn_ra
Online Now Send Email
Jan 25, 2004
3:50 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help