Hello, Im new in ASP.NET and have been reading about state management and have a couple of questions, it be great if someone could help me understand.
Im having trouble understanding the use of ViewState.
It is only limited to the current page, what kind of typical/common use would it be if you are storing information that is only limited to the page you are currently viewing?
Cookies are commonly used for storing preferences and the book warns that it is insecure and modified by users and also easily found. How come many websites store user name and password in cookies?
I understand that Session State is commonly used for shopping cart usage but Session State uses cookies and as I mentioned above isnt cookies insecure? Or does it only store in cookies the session ID?
I also read that session state can also be stored in SQL server, is this option more preferred?
Thanks for your help in answering these questions.