Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more:
Hi...

Can anybody explain be the difference between Sessions and View states .....
Posted

session:

-SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes.

View State

-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.
 
Share this answer
 
v2
Check this similar thread
diffrent between ViewState and Session[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900