Wednesday, June 22, 2016

Cookies ASP.NET

Cookies are the small files that are created on the client's system or client browser memory. Cookies store information in plain text format. most common examples of using a cookie are to store user information, user preferences, password remember option

Disadvantage
  • It stores data in simple text format, so it's not secure at all.
  • There is a size limit for cookies data (4096 bytes / 4KB).
  • The maximum number of cookies allowed is also limited. Most browsers provide limits the number of cookies to 20. If new cookies come, the old ones are discarded. Some browsers support up to 300.
  • We need to configure the browser. Cookies will not work on a high security configuration of the browser.

"Response.Cookies" command is used to create cookies.
"Request.Cookies" command is used to retrieve a cookie value.

Cookie Munging in ASP.NET?
There are some specific reasons to use cookie munging in ASP.NET:
  • Some browsers do not support cookies.
  • Sometimes users disable cookies in the browser.

No comments:

Post a Comment