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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global.asax

Status
Not open for further replies.

dpdoug

Programmer
Nov 27, 2002
455
US
I have tried using the functions in this file but they never fire for some reason. It seems pretty useless. It's just there when you create a new aspx application.

Is there something I have to configure for it to work? Some of those functions would be pretty useful if they would fire at all. Especially the Application_End or Session_End, might come in handly for resetting cookies or something like that.

 
Ok...

Application_OnStart - fires whenever the webserivce has been started and a user requests an asp/aspx page (there will also be a session_onstart for that user) but the next time a user comesin and asks for an asp/aspx page, only the session_onstart runs as the applicaion (webserver/asp services) is/are running and has been initialized

Session_OnStart fires when a user first selects an asp/aspx page from your site in this browser trip..

Session_End - The session started above has just expired or been programaticly terminated.. the timeout is (by default) 20 mins from the last page (asp/aspx) requested..

Application_end - If you stop the webservices nicely (no blue screen or hard boot :) this will run.

One more point worth stressing.... HTM/HTML pages don't cause these events to fire.

HTH


Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top