Exemplo n.º 1
0
        public static IDictionary <string, string> DecryptSessionObject(string sessionString)
        {
            IDictionary <string, string> localObject = new Dictionary <string, string>();

            if (!string.IsNullOrWhiteSpace(sessionString))
            {
                // get the decrypted text from session string
                var decrytText = SessionEncryption.DecryptCipherTextToPlainText(sessionString);
                // change the string
                localObject = (Dictionary <string, string>)StringToObject(decrytText);
            }
            return(localObject);
        }
Exemplo n.º 2
0
 public static int GetRoleIDFromSession()
 {
     return(GetInt(SessionEncryption.GetValueFromSession(SessionItemKey.RoleID)));
 }
Exemplo n.º 3
0
 public static string GetEamilAddressFromSession()
 {
     return(SessionEncryption.GetValueFromSession(SessionItemKey.EmailAddress));
 }
Exemplo n.º 4
0
 public static string GetUserNameFromSession()
 {
     return(SessionEncryption.GetValueFromSession(SessionItemKey.UserName));
 }
Exemplo n.º 5
0
 public static long GetUserIdFromSession()
 {
     return(GetLong(SessionEncryption.GetValueFromSession(SessionItemKey.UserId)));
 }