CookieProtection CookieProtection CookieProtection CookieProtection Enum

定义

描述 Cookie 中信息的保护方式。Describes how information in a cookie is protected.

public enum class CookieProtection
public enum CookieProtection
type CookieProtection = 
Public Enum CookieProtection
继承
CookieProtectionCookieProtectionCookieProtectionCookieProtection

字段

All All All All 3

使用 ValidationEncryption 保护 Cookie 中的信息。Use both Validation and Encryption to protect the information in the cookie.

Encryption Encryption Encryption Encryption 2

加密 Cookie 中的信息。Encrypt the information in the cookie.

None None None None 0

不保护 Cookie 中的信息。Do not protect information in the cookie. Cookie 中的信息以明文形式存储,并且在发送回服务器时不进行验证。Information in the cookie is stored in clear text and not validated when sent back to the server.

Validation Validation Validation Validation 1

确保 Cookie 中的信息在发送回服务器前没有改变。Ensure that the information in the cookie has not been altered before being sent back to the server.

适用于

另请参阅