where is session state, application state in page life cycle?
where is session state, application state in page life cycle?
7.3k views Asked by sly_Chandan At
2
There are 2 answers
0
On
The Session and Application states are independent of the page lifecycle and can be accessed at any point during the page lifecycle.
Objects or variables which you store in session/application state will be persisted across postbacks on the server. Once they are there, they stay 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 a few liberties in terms of accuracy but this is how I generally think of this mechanism as working.
Did you read ASP.NET Page life cycle -
http://msdn.microsoft.com/en-us/library/ms178473.aspx