예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static void SaveUser(ICurrentUser user)
 {
     SessionCookieHelper <ICurrentUser> .Save(user, Constants.SecurityKey.LoginedUserInfo_SessionName, Constants.SecurityKey.LoginedUserInfo_CookieName, Constants.SecurityKey.key, Constants.SecurityKey.IV);
 }