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); }
public static int GetRoleIDFromSession() { return(GetInt(SessionEncryption.GetValueFromSession(SessionItemKey.RoleID))); }
public static string GetEamilAddressFromSession() { return(SessionEncryption.GetValueFromSession(SessionItemKey.EmailAddress)); }
public static string GetUserNameFromSession() { return(SessionEncryption.GetValueFromSession(SessionItemKey.UserName)); }
public static long GetUserIdFromSession() { return(GetLong(SessionEncryption.GetValueFromSession(SessionItemKey.UserId))); }