Home / ASP.NET Wiki / State Management / Cookies

Cookies

 Rate It (7)

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

Revision number 5, Friday, May 23, 2008 8:17:30 AM by XIII

Comments

Related Articles

Cookies in ASP.NET

Introduction Cookies are also known by many names, HTTP Cookie, Web Cookie, Browser Cookie, Session Cookies etc. Cookies are one of several ways to store data about web site visitors during the time when web server and browser are not connected. Common use

Login through cookies

Different forums are filled with the questions regarding how to manually implement cookies for login or in other words how to implement "Remeber me" option. Following is the code that will give the idea of how to achieve this task. Controls used1

How to: Adding localization support to ASP.NET web by extending Page class (C#)

Localization Localization is often required on the web. For that reason, .NET framework includes localization support trough System.Globalization namespace. However, while there is support, you need some extra work to use it. One of the most repeated tasks

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. francissvk (1)
  2. deepeshsp (1)