Where is the session state, application state in the page life cycle?

Where is the session state, application state in the page life cycle?

+6
application-state session-state page-lifecycle
source share
2 answers

Have you read the life cycle of an ASP.NET page -
http://msdn.microsoft.com/en-us/library/ms178473.aspx

+1
source share

The state of the session and application is independent of the page life cycle and can be accessed at any time during the page life cycle.

Objects or variables that you save in session / application state will be stored through server callbacks. Once they are there, they remain there for the duration of the client session (in the case of SessionState) or for the duration of the application (in the case of ApplicationState).

This probably takes several freedoms in terms of accuracy, but as I understand it, this mechanism works.

+11
source share

All Articles