Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
ASP.NET

Session State in Web Forms

Store per-user data in Session with timeout configuration.

Session State in Web Forms — a practical guide to Web Forms Session with clear examples you can reuse in real projects.

ASP & ASP.NET Tutorial Series (74/247). Prefer one article? Read the complete ASP.NET tutorial.

Short description

Prefer storing IDs; support out-of-process session in web farms.

Session

Session["userId"] = user.Id;
var id = Session["userId"] as int?;

Leave a reply

Your email address will not be published. Required fields are marked *