System.Web.SessionState.ISessionIDManager.Validate Method

Confirms that the supplied session identifier is valid.

Syntax

public bool Validate (string id)

Parameters

id
The session identifier to validate.

Returns

true if the session identifier is valid; otherwise, false.

Remarks

The ISessionIDManager.Validate(string) method verifies that the supplied id is a valid session identifier.

Your System.Web.SessionState.ISessionIDManager implementation should call the ISessionIDManager.Validate(string) method from the ISessionIDManager.GetSessionID(System.Web.HttpContext) method when retrieving a session identifier from an HTTP request to ensure that the supplied session identifier is properly formatted.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0