コード例 #1
0
        protected void WriteMenuCookie(long menuTid)
        {
            string strName  = GlobalSetting.CurrentMenu;
            string strValue = CodingUtils.AesEncrypt(menuTid.ToString());

            WebUtils.WriteCookie(strName, strValue);
        }
コード例 #2
0
        private string WriteLoginCookie(Token token)
        {
            string strName  = GlobalSetting.CurrentLoginUserGuid;
            var    value    = token.ToJsonString();
            string strValue = CodingUtils.AesEncrypt(value);

            WebUtils.WriteCookie(strName, strValue);
            return(value);
        }