What is the difference between SessionState and ViewState?
There are the following differences between the session state and ViewState.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
There are the following differences between the session state and ViewState.
- Session state is saved on the server, ViewState is saved in the page.
- An important point that the ViewState travels up and down between client and server, but SessionState stays on the server.
- Session state is usually cleared after a period of inactivity from the user (no request happened containing the session id in the request cookies).
- The view state is posted on subsequent posts back in a hidden field.
need an explanation for this answer? contact us directly to get an explanation for this answer