System.Web.HttpContext.Current
using System.Web.SessionState; /// <summary> /// Summary description for Class1 /// </summary> public class Class1:IRequiresSessionState { public Class1() { // // TODO: Add constructor logic here // } public object GetSession(string key) { object sessionKey = HttpContext.Current.Session[key]; return sessionKey; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)