Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions What are cookies How many types of cookies are there



Types of cookies

View(s): 16202

What are cookies? How many types of cookies are there?

Answer 1)
Cookies are small pieces of information stored in the client computer. They are limited to 4K in size.

Cookies are two types:
  1. In-memory cookies also called as Session cookies or Non-Persistent cookies
    • These cookies are saved in memory and will be lost while closing your browser.
  2. Persistent cookies
    • A persistent cookie is saved as a text file in the file system of the client computer usually under Temporary Internet Files folder. To create persistent cookie we need to set cookie Expires property. Generally we go for persistent cookies to implement the features like “Remember me” option OR to store user information such as selected theme.
[Code=cs]
HttpCookie cookie = new HttpCookie("Username", "Mr. Ponna");
cookie.Expires = DateTime.Now.AddDays(7); // creating A persistent cookie for 7 days

Response.Cookies.Add(cookie);
[/code]
  Asked in:  ValueLabs   Expertise Level:  Experienced
  Last updated on Friday, 09 September 2011
3/5 stars (18 vote(s))

Register Login Ask Us Write to Us Help