Freshers Aptitude technical questions
Freshers Job Alert
Bookmark and Share

When does each ServerSide events start processing?

•  Application_OnStart

The Application_OnStart event occurs before the first new session is created, that is, before the Session_OnStart event. Only the Application and Server built-in objects are available. Referencing the Session, Request, or Response objects in the Application_OnStart event script causes an error.

•  Session_OnStart

The Session_OnStart event occurs when the server creates a new session. The server processes this script prior to executing the requested page. The Session_OnStart event is a good time for you to set any session-wide variables, because they will be set before any pages are accessed. All the built-in objects (Application, ObjectContext, Request, Response, Server, and Session) are available and can be referenced in the Session_OnStart event script.

 

•  Session_OnEnd

The Session_OnEnd event occurs when a session is abandoned or times out. Of the server built-in objects, only the Application, Server, and Session objects are available.

•  Application_OnEnd

The Application_OnEnd event occurs when the application quits, after the Session_OnEnd event. Only the Application and Server built-in objects are available.