The Session_OnEnd Function
The Session_OnEnd function cleans up objects when the user session ends, whether because of a time-out or a user exit, or when Active Server Pages abandons a session.
Both the Session_OnStart and Session_OnEnd functions are in response to specific user requests coming in from a browser. The first time a new user requests an .asp file, Session_OnStart is called. When Session_OnStart is finished, the application's first .asp file starts to process. Session_OnEnd is called either when the session times out or when there is a script call that tells Active Server Pages to abandon the session, such as when a user clicks Log Off in Microsoft Outlook Web Access.
If you rewrite the Session_OnEnd function, make sure you return all session variables to Empty or to Nothing (for object variables).