A Viewstate is stored in a hidden on the page. That is why it will only last
the life of that page, and not to the next page.
If you look in IE, and view source, you'll see a massive hidden with an
encrypted value ... that is your viewstate.
A session is stored in memory, and is valid for a specified time, or until
the user closes there browser. (which it will still be alive on your server
till it expires)
This can be increased through IIS, your Web.Config or when you create the
session.
By default, this is 20 minutes but can most definately be increased.
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
What is the difference btw a Session var and a ViewState var ?
I understand that a Session var exist for a single user, for a ViewState
var
it exist for that page?
I read the msdn and it states the the Session will only be valid until 20
min of inactivity. Is that really true ? Anyway of extending it?
TIA