This documentation is archived and is not being maintained.
HttpSessionState.SessionID Property
.NET Framework 1.1
Gets the unique session ID used to identify the session.
[Visual Basic] Public ReadOnly Property SessionID As String [C#] public string SessionID {get;} [C++] public: __property String* get_SessionID(); [JScript] public function get SessionID() : String;
Property Value
The session ID.
Example
[Visual Basic, C#, C++] The following example assigns the Session ID for the current request to a string variable.
[Visual Basic] Dim MySessionId As String MySessionId = Session.SessionID [C#] String MySessionId; MySessionId = Session.SessionID; [C++] String* MySessionId; MySessionId = Session->SessionID;
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpSessionState Class | HttpSessionState Members | System.Web.SessionState Namespace
Show: