httpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required)
var session = HttpContext.Current.Session; if (session != null) { if (session["TestSession"] == null) { session["TestSession"] = DateTime.Now; } return "TestSession: " + session["TestSession"]; } return ("No Session");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)