IHttpSessionState.SessionID Property


Gets the unique session identifier for the session.

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

string SessionID { get; }

Property Value

Type: System.String

The session ID.

The following code example implements the SessionID property of the IHttpSessionState interface.

public string SessionID
  get { return pId; }

.NET Framework
Available since 2.0
Return to top