CookieProtection Enumeration
TOC
Collapse the table of content
Expand the table of content

CookieProtection Enumeration

 

Describes how information in a cookie is protected.

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

public enum CookieProtection

Member nameDescription
All

Use both Validation and Encryption to protect the information in the cookie.

Encryption

Encrypt the information in the cookie.

None

Do not protect information in the cookie. Information in the cookie is stored in clear text and not validated when sent back to the server.

Validation

Ensure that the information in the cookie has not been altered before being sent back to the server.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft