Friday, March 12, 2010

What Is The Difference Between ViewState and SessionState

View state is a client side state management whereas Session is used to manage state at server side.
Session variable can be accessible from all pages in web application. It is scoped to current browser session only.
ViewState persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available.
SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes.

No comments: