CookieProtection 枚举

定义

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

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

字段

All 3

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

Encryption 2

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

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 1

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

适用于

另请参阅