Cookies are a State Management Technique that can store the values of
control after a post-back. Cookies can store user-specific Information
on the Client's machine like when the user last visited your site.
Basically Cookies are one of the following 2 types:
Persistent Cookies: Persistent Cookies are Permanent Cookies stored as a text file in the hard disk of the computer.
Non-Persistent Cookies: Non-Persistent cookies
are temporary. They are also called in-memory cookies and session-based
cookies. These cookies are active as long as the browser remains
active, in other words if the browser is closed then the cookies
automatically expire.
List of properties containing the HttpCookies Class:
Domain: Using these properties we can set the domain of the cookie.
Expires: This property sets the Expiration time of the cookies.
Has Keys: If the cookies have a sub key then it returns True.
Name: Contains the name of the Key.
Path: Contains the Virtual Path to be submitted with the Cookies.
Secured: If the cookies are to be passed in a secure connection then it only returns True.
Value: Contains the value of the cookies.
Limitation of the Cookies
The size of cookies is limited to 4096 bytes.
A total of 20 cookies can be used in a single website.
No comments:
Post a Comment