System.Web.SessionState.SessionIDManager.CreateSessionID Method

Creates a unique session identifier for the session.

Syntax

public virtual string CreateSessionID (System.Web.HttpContext context)

Parameters

context
The current System.Web.HttpContext object that references server objects used to process HTTP requests (for example, the System.Web.HttpContext.Request and System.Web.HttpContext.Response properties).

Returns

A unique session identifier.

Remarks

This method is not intended to be called from application code.

The SessionIDManager.CreateSessionID(System.Web.HttpContext) method returns a unique session identifier that is a randomly generated number encoded into a 24-character string consisting of lowercase characters from a to z and numbers from 0 to 5.

Requirements

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