private void SaveSessionHeaderInfoFromRoute(string channelId) { if (!string.IsNullOrEmpty(channelId)) { if (SessionHeaderInfo == null) { SessionHeaderInfo = new Model.Common.SessionHeaderInfo(Host); } SetSessionRouteChannelInfo(channelId); } SessionCookieHelper <ISessionHeaderInfo> .Save(SessionHeaderInfo, Constants.SecurityKey.HeaderInfo_SessionName, Constants.SecurityKey.HeaderInfo_CookieName, Constants.SecurityKey.key, Constants.SecurityKey.IV); }
private void SaveSessionHeaderInfo(string channelId, string promotionCode) { if (!string.IsNullOrEmpty(channelId)) { if (SessionHeaderInfo == null) { SessionHeaderInfo = new Model.Common.SessionHeaderInfo(Host); } SessionHeaderInfo.ChannelId = channelId; SessionHeaderInfo.PromotionCode = promotionCode; } SessionCookieHelper <ISessionHeaderInfo> .Save(SessionHeaderInfo, Constants.SecurityKey.HeaderInfo_SessionName, Constants.SecurityKey.HeaderInfo_CookieName, Constants.SecurityKey.key, Constants.SecurityKey.IV); }
public static void SaveUser(ICurrentUser user) { SessionCookieHelper <ICurrentUser> .Save(user, Constants.SecurityKey.LoginedUserInfo_SessionName, Constants.SecurityKey.LoginedUserInfo_CookieName, Constants.SecurityKey.key, Constants.SecurityKey.IV); }