Does viewstate expire?

前端 未结 12 1520
-上瘾入骨i
-上瘾入骨i 2020-12-06 04:40

Let\'s say you have a aspx page that does not rely on session, but does rely on viewstate for persistance between postbacks.

If a user is accessing this page, and l

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 05:11

    ViewState is kept in a hidden field on the page itself. So as long as the user has the page, he'll have the ViewState. But if your app automatically logs the user out after a certain period of time, still having the ViewState may not do him any good.

提交回复
热议问题