Dear friends! Here is summary of my today's technical presentation "State Management with ASP.NET". Here "State" means not political region; in web development preserving user's information during the visit of web site is referred as "State management".....http:// (Hyper Text Transfer Protocol) is connection less protocol. Every page in a web application is independent; while developing web application it is difficult to preserve user's supplied information; because we can not directly read the content of one web forms text box while working on another web form.By using "State" management technique we can establish connection in a connection less environment (http://).
ASP.NET provides state management that saves information between pages, which helps to maintain the continuity of user information (sate) through out a visit to a web site. here are two types of state management technique: 1. Server side 2. Client side 1. Server Side State management by using >> I) Application II) Session and III) Database Server/ State Server2. Client Side State management >> I) Cookies II) ViewState property and III) Query String
Session and Cookies are used to maintain security in web site. In ASP.NET Microsoft Forms based authentication mechanishim is most commonly used. It is based on cookies.
In Cookies based authentication after verifying User credentials (User Name, Password etc.) ASP.NET sends valid authentication cookie to the users' machine. If valid cookie is present in user's machine then secure page (Inbox of e-mail) will be sent to client the computer.
Cookies are less reliable then server side state management because user can delete cookies and few amount of data (4 KB) can be stored.