Name
FormsProtectionEnum
Synopsis
This enumeration specifies how ASP.NET protects the Forms Authentication cookie.
It is not used in ASP.NET code, but in the web.config
file
by the protection
attribute of the forms
element (for example, <forms name="name" loginUrl="url" protection="None ">
). Encryption
uses Triple-DES
or DES to encode the cookie before it is transmitted. Validation
verifies the cookie hasn’t been altered in transit
by appending a validation key and then a Message Authentication Code (MAC) to
the cookie.
Public Enum FormsProtectionEnum All = 0 None = 1 Encryption = 2 Validation = 3 End Enum
Hierarchy
System.Object→System.ValueType→ System.Enum(System.IComparable
, System.IFormattable
, System.IConvertible)→ FormsProtectionEnum
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.