SessionIDManager.Decode(String) Método

Definição

Decodifica um identificador de sessão codificada por URL obtido de um cookie ou URL.Decodes a URL-encoded session identifier obtained from a cookie or the URL.

public:
 virtual System::String ^ Decode(System::String ^ id);
public virtual string Decode (string id);
abstract member Decode : string -> string
override this.Decode : string -> string
Public Overridable Function Decode (id As String) As String

Parâmetros

id
String

O identificador de sessão a decodificar.The session identifier to decode.

Retornos

String

O identificador de sessão decodificado.The decoded session identifier.

Comentários

Este método não se destina a ser chamado do código do aplicativo.This method is not intended to be called from application code.

Esse método é usado internamente pela SessionIDManager classe para decodificar SessionID valores personalizados criados por classes que herdam a SessionIDManager classe e substituem os CreateSessionID Validate métodos e.This method is used internally by the SessionIDManager class to decode custom SessionID values created by classes that inherit the SessionIDManager class and override the CreateSessionID and Validate methods. Para garantir a fidelidade de um valor de identificador de sessão personalizado recuperado da solicitação HTTP pelo GetSessionID método, o SessionIDManager decodifica o valor personalizado usando o UrlDecode método.To ensure the fidelity of a custom session-identifier value retrieved from the HTTP request by the GetSessionID method, the SessionIDManager decodes the custom value using the UrlDecode method.

Notas aos Herdeiros

Para obter um exemplo de uma classe que herda a SessionIDManager classe e substitui CreateSessionID(HttpContext) os Validate(String) métodos e, consulte o exemplo fornecido para o CreateSessionID(HttpContext) método.For an example of a class that inherits the SessionIDManager class and overrides the CreateSessionID(HttpContext) and Validate(String) methods, see the example provided for the CreateSessionID(HttpContext) method.

Aplica-se a