protected void WriteMenuCookie(long menuTid) { string strName = GlobalSetting.CurrentMenu; string strValue = CodingUtils.AesEncrypt(menuTid.ToString()); WebUtils.WriteCookie(strName, strValue); }
private string WriteLoginCookie(Token token) { string strName = GlobalSetting.CurrentLoginUserGuid; var value = token.ToJsonString(); string strValue = CodingUtils.AesEncrypt(value); WebUtils.WriteCookie(strName, strValue); return(value); }