Pages

Cookies in ASP.Net Example


Cookies is a small piece of information stored on the client machine.It is used to store user preference information like Username, Password,City and Phone Number etc on client machines. We need to import namespace called  System.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.