CookieProtection Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: