SessionIDManager::Encode Method
Encodes the session identifier for saving to either a cookie or the URL.
Assembly: System.Web (in System.Web.dll)
Parameters
- id
- Type: System::String
The session identifier to encode.
This method is not intended to be called from application code.
This method is used internally by the SessionIDManager class to encode custom SessionID values created by classes that inherit the SessionIDManager class and override the CreateSessionID and Validate methods. To ensure the fidelity of a custom session-identifier value stored in the HTTP response by the SaveSessionID method, the SessionIDManager encodes the custom value using the UrlEncode method.
For an example of a class that inherits the SessionIDManager class and overrides the CreateSessionID and Validate methods, see the CreateSessionID method.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.