How to check how the session is tracked in ASP.NET

This ASP.NET tutorial explains how to check how the session is tracked in ASP.NET.

Software developer can use System.Web.SessionState.HttpSessionState member IsCookieless which identifies whether this session is tracked with a cookie or using [...]

How to check if a session is created for the current request in ASP.NET

This ASP.NET tutorial explains how to check if a session is created for the current request in ASP.NET.

Software developer can use System.Web.SessionState.HttpSessionState member IsNewSession which identifies whether this session was just created for the current request. If currently no information is in session state, ASP.NET will not make an effort to track the session or create [...]

How to get session identifier in ASP.NET

This ASP.NET tutorial explains how to get session identifier in ASP.NET.

Software developer can use System.Web.SessionState.HttpSessionState member SessionID which provides the unique session identifier for the current user as [...]

How to cancel the current session in ASP.NET

This ASP.NET tutorial explains how to cancel the current session in ASP.NET.

Software developer can use System.Web.SessionState.HttpSessionState member Abandon() which cancels the current session immediately and release all the memory it occupied. This technique is a useful in a logoff page to ensure that server memory is recovered as quickly [...]

How to remove all session items in ASP.NET

This ASP.NET tutorial explains how to remove all session items in ASP.NET.

Software developer can use System.Web.SessionState.HttpSessionState member Clear() which removes all the session items but doesn’t change the current [...]

How to find number of items in the current session collection in ASP.NET

This ASP.NET tutorial explains how to find number of items in the current session collection in ASP.NET.

Software developer can use System.Web.SessionState.HttpSessionState member Count which returns the number of items in the current [...]

How to use session state in ASP.NET using VB.NET

This ASP.NET tutorial explains how to use session state in ASP.NET using VB.NET.

Software developer can interact with session state using the  System.Web.SessionState.HttpSessionState class, which is provided in an ASP.NET web page as the built-in Session object. Items can be added to the collection and retrieved after in the same manner as items [...]

How to use session state in ASP.NET using C#

This ASP.NET tutorial explains how to use session state in ASP.NET using C#.

Software developer can interact with session state using the  System.Web.SessionState.HttpSessionState class, which is provided in an ASP.NET web page as the built-in Session object. Items can be added to the collection and retrieved after in the same manner as items can be added to [...]

How to use a SQL server database for state management in ASP.NET

This ASP.NET tutorial explains how to use a SQL server database for state management in ASP.NET.

Software developer can instruct ASP.NET to use a SQL database to store session information with option SqlServer: When software developer is going to use this mode, the objects he store in the session state must be serializable. Otherwise ASP.NET will not [...]

How to use a separate Windows service for state management in ASP.NET

This ASP.NET tutorial explains how to use a separate Windows service for state management in ASP.NET.

Software developer can set ASP.NET to use a separate Windows service for state management with option StateServer: When software developer is going to use this mode, the objects he store in the session state must be serializable. Otherwise ASP.NET will not [...]