You should be using a global.asa file with your application. If so, put the code to update the time in the subroutine:
Sub Session_OnEnd
which fires after the user exits the application or if they close the browser or the 'session' is lost due to inactivity.
HTH.
Mike A.
>I meet one problem that is if the user click the close button of the browse at the top right corner,how can I catch the event in my web application.I want to put the user's exit time in my database
Michael P. Antonovich, MCSD
Email: mike@micmin.com
MicMin Associates - Orlando, FL