Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Cookies

0.00/5 (No votes)
23 May 2008 1  
Cookies are small amounts of text that can be stored on the client pc by the browser.  The cookie can be accessed both at the client through the use

This articles was originally at wiki.asp.net but has now been given a new home on CodeProject. Editing rights for this article has been set at Bronze or above, so please go in and edit and update this article to keep it fresh and relevant.

Cookies are small amounts of text that can be stored on the client pc by the browser.  The cookie can be accessed both at the client through the use of Javascript and also at the server.  While cookies can be a convenient way to store small bits of state information, it's important to keep in mind that the client browser may have been configured not to accept cookies.

In each cookie you can not save more than 4k of information. Remember clients can open cookies and see the content of a cookie so never save a password there. Cookies are usually used to save user preference information.

 

External Link

ASP.NET Cookies Overview (MSDN)

 

Video 

Read, Write, and Delete Cookies in ASP.NET

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here