Session information

There are some things about session variables that are important to know. Each session can be uniquely identified within an ASP.NET application. A 120-bit session ID string, which contains characters that can be carried in a URL, is used to track and identify sessions. Session ID values are generated by an algorithm that guarantees uniqueness. This is important in ensuring that sessions don’t collide.

Session IDs are communicated across client/server requests by either an HTTP cookie or a munged URL.

An application can store session state data in a SQL Server database. The following procedure shows how to configure an application to use SQL Server to store state:

1.
Be sure ASP.NET State service is running on the server ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.