Posts

Showing posts from August, 2015

Cookies in ASP.NET

Cookies is a small piece of information stored on the client machine. This file is located on client machines "C:\Document and Settings\Currently_Login user\Cookie" path.  Its is used to store user preference information like Username, Password,City and PhoneNo etc on client machines. We need to import namespace called  Systen.Web.HttpCookie before we use cookie. Type of Cookies? Persist Cookie - A cookie has not have expired time Which is called as Persist Cookie Non-Persist Cookie - A cookie has expired time Which is called as Non-Persist Cookie How to create a cookie?  Its really easy to create a cookie in the Asp.Net with help of Response object or HttpCookie Example 1 :             HttpCookie  userInfo =  new   HttpCookie ( "userInfo" );         userInfo[ "UserName" ] =  "Annathurai" ;         userInfo[ "UserColor"...