Sunday, July 22, 2007

State Management : Cookies Concepts, Limit: 4096 bytes, Expires

Approaches in Cookie based user identification:
Store all the user information on the cookie, used when information is generic
Store the identification key only, retrieve other information from server using the key
Cookie names are case sensitive and can save upto 4096 bytes of information
Set Expires to DateTime.MaxValue for a permanent cookie
To remove: Response.Cookies[“CookieName”].Expires = DateTime.Now;

No comments:

Post a Comment