Esempio n. 1
0
 public static NiceApiLibrary_low.NiceSystemInfo SessionsSystem_Get(System.Web.SessionState.HttpSessionState Session)
 {
     NiceApiLibrary_low.NiceSystemInfo ret = ConstantStrings.GetSessionData(Session).LoggedOnUsersNiceSystemInfo;
     if (ret == null)
     {
         ret = NiceApiLibrary_low.NiceSystemInfo.DEFAULT;
     }
     return(ret);
 }
Esempio n. 2
0
        public static bool IsLoggedOn(System.Web.SessionState.HttpSessionState Session, bool checkForAdmin)
        {
            SessionData sd = ConstantStrings.GetSessionData(Session);

            if (sd.LoggedOnUserEmail != null)
            {
                if (checkForAdmin)
                {
                    return(sd.LoggonOnUserIsAdmin);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 3
0
        public static void SessionsSystem_Set(System.Web.SessionState.HttpSessionState Session, NiceApiLibrary_low.NiceSystemInfo systemInfo)
        {
            SessionData sd = ConstantStrings.GetSessionData(Session);

            sd.LoggedOnUsersNiceSystemInfo = systemInfo;
        }