Assembly: System.Web (in system.web.dll)
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.