File manager - Edit - G:/PleskVhosts/indiaminerals.in/tlt.INFOFIXDEVELOPERS.COM/LIBS/SiteSession.cs
Back
using Business; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApp.LIBS { public class SiteSession { public static bool IsLoggedIn { get { return HttpContext.Current.Session["IsLoggedIn"] == null ? false : (bool)HttpContext.Current.Session["IsLoggedIn"]; } set { HttpContext.Current.Session["IsLoggedIn"] = value; } } public static Business.UserLogin LoginUser { get { return HttpContext.Current.Session["UserLogin"] == null ? null : (Business.UserLogin)HttpContext.Current.Session["UserLogin"]; } set { HttpContext.Current.Session["UserLogin"] = value; } } public static Business.SessionMaster SessionMasters { get { return HttpContext.Current.Session["SessionMaster"] == null ? null : (Business.SessionMaster)HttpContext.Current.Session["SessionMaster"]; } set { HttpContext.Current.Session["SessionMaster"] = value; } } public static Business.UserLogin NexUser { get { return HttpContext.Current.Session["NexUser"] == null ? null : (Business.UserLogin)HttpContext.Current.Session["NexUser"]; } set { HttpContext.Current.Session["NexUser"] = value; } } public static int SessionId { get { return HttpContext.Current.Session["SessionId"] == null ? 0 : (int)HttpContext.Current.Session["SessionId"]; } set { HttpContext.Current.Session["SessionId"] = value; } } public static int Year { get { return HttpContext.Current.Session["Year"] == null ? 0 : (int)HttpContext.Current.Session["Year"]; } set { HttpContext.Current.Session["Year"] = value; } } public static int CompnayId { get { return HttpContext.Current.Session["CompnayId"] == null ? 0 : (int)HttpContext.Current.Session["CompnayId"]; } set { HttpContext.Current.Session["CompnayId"] = value; } } public static Compnay CompnayName { get { return HttpContext.Current.Session["CompnayName"] == null ? null : (Compnay)HttpContext.Current.Session["CompnayName"]; } set { HttpContext.Current.Session["CompnayName"] = value; } } } }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings