Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session timeout and session_onend 2

Status
Not open for further replies.

maxpower1

Programmer
Jul 29, 2001
488
0
0
US
good afternoon
when a session timeout because of inactivity, does it execute session_onend method in global.asa? If so, I want to add some clean up codes in this method.

thank you
 
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).

 
thread333-64384 ...no guarantees

BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top