Example #1
0
 public static void WriteCookieData(ISession session, PostLogin loginData)
 {
     SessionOps.Write(session, SessionName.StoreId, loginData.StoreId);
     SessionOps.Write(session, SessionName.AdminAccess, loginData.IsAdmin);
     SessionOps.Write(session, SessionName.LastLoginTime, loginData.LastLoginTime);
     SessionOps.Write(session, SessionName.StoreCity, loginData.StoreCity);
     SessionOps.Write(session, SessionName.StoreCode, loginData.StoreCode);
     SessionOps.Write(session, SessionName.StoreName, loginData.StoreName);
     SessionOps.Write(session, SessionName.UserName, loginData.UserName);
 }
Example #2
0
 public static void WriteLoggIn(ISession session, StoreInfo info)
 {
     SessionOps.Write(session, SessionName.StoreId, info.StoreId);
     SessionOps.Write(session, SessionName.AdminAccess, info.IsAdmin);
     SessionOps.Write(session, SessionName.UserName, info.UserName);
 }
Example #3
0
 public static void WriteLogOut(ISession session)
 {
     SessionOps.Write(session, SessionName.StoreId, 0);
     SessionOps.Write(session, SessionName.AdminAccess, false);
     SessionOps.Write(session, SessionName.UserName, "");
 }