Should I use Session State or Viewstate to store and save information in asp? [duplicate]

StackOverflow https://stackoverflow.com/questions/21945550

문제

Viewstate or sessionstate? This is to save the variables to a specific user then display them on the output page. Btw, these variables will be saved on atleast 5 different pages before it's outputted, so I want to be able to store them. Thanks!

도움이 되었습니까?

해결책

Viewstate typically stores data for a single page. Session state stores data for a session. If you are planning (as you have said) on persisting values over a several pages I would go with session state.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top