introductionThere is Lots of ways and Techniques Are available to Manage you State on Web in Aspnet Session management
its will manage user state between server and client like (User Authentication) its keep user Values with unique References on Server in you Apps Application State managementApplication State Manged your Application level Object like( User/Visitor Counter,Number of user online ) in asp.net normally we use to managed application level Object Globe.asmx Class Managing State On PageAs we know http or html Control our stateless so before asp.net it quit big problem but asp.net provide nice solution for managing page or control state use View_state i will keep you Control State during Server to Client Communication Example if user using html Control for User Registration Form on your Web Site where user have to fill more 16 textboxies then you will check your name from server then Postback server html control lose all data fill by user but in asp.net Control it will keep its data in View_State in encrypted form . View State: [Save data in encrypted form in page] Hidden fields [Save data in page] Cookies : [Storing Data on Client] Query String : [Passing data to next page by URL(defalut.aspx?var=abc)] How is Querstring present in URL Default.aspx Login button click eventProfile.aspxProfile.aspx.cscompose simple code in page load event. ConclusionIn this article , i have shared with you how we could access cookies and check the already a user is authenticated and store token in cookies.andthen read the cookies and process page without re login again and again. Sample Project SourceDownload source files -101 kb |