Difference between View State and Session state

View State
Session State
View State is client side state management
Session state is a server side state management
View state value is accessible with in the same page.
Session variable can be accessible across pages
View state Information is stored in hidden fields in client side.
Session data is stored in the server and keys are store in Cookies files.
It is less secure
It is more secure


Note: - If cookies are disabled then session id key is passed via Query string.
Difference between View State and Session state Difference between View State and Session state Reviewed by NEERAJ SRIVASTAVA on 11:37:00 PM Rating: 5

No comments:

Powered by Blogger.