Viewstate maintains state through postbacks and therefore can hold the state of controls on the page, etc.
Session saves data in the entire user session and therefore can store data that needs to be stored for a longer time (for example, a shopping cart)
a source
to share