//Set logged user session public static void SetUserSession(Int64 EmpEid) { #region Set User Session if (UserSession.EmpEID == null || UserSession.EmpID == null) { BL_Employee objBL = new BL_Employee(); PL_Employee MySession = objBL.GetLoggedInEmpDetails(EmpEid); if (MySession != null) { List<string> MyRoleID = new List<string>(); List<string> MyRoleName = new List<string>(); UserSession.EmpEID = Convert.ToString(MySession.EmpEid); UserSession.EmpID = Convert.ToString(MySession.EmpId); UserSession.VZID = MySession.VZID; UserSession.Gender = MySession.Gender; UserSession.EmpName = MySession.EmpName; UserSession.EmpFirstName = MySession.EmpFirstName; UserSession.Email = MySession.Email; } } #endregion }