Прочетете на английски Редактиране

Споделяне чрез


CookieProtection Enum

Definition

Describes how information in a cookie is protected.

C#
public enum CookieProtection
Inheritance
CookieProtection

Fields

Name Value Description
None 0

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 1

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

Encryption 2

Encrypt the information in the cookie.

All 3

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

Applies to

Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also