C# 中对COOKIES的操作

HttpUtility.UrlDecode
HttpUtility.UrlEncode
HttpContext.Current.Request.Cookies["UserCode"].Value

HttpContext.Current.Response.Cookies["UserCode"].Value = HttpUtility.UrlEncode(value)
原文地址:https://www.cnblogs.com/william-lin/p/3145559.html