My method of recovering cookies is bringing words with an unconfigured accent.
//Para gravar um Cookie
private static void Set(string key, string value)
{
var encValue = value;
var cookie = new HttpCookie(key, value)
{
Expires = DateTime.Now.AddMinutes(_cookieDuration),
HttpOnly = _cookieIsHttp
};
_context.Response.Cookies.Add(cookie);
}
//Para ler um Cookie
public static string Get(string key)
{
var value = string.Empty;
var c = _context.Request.Cookies[key];
return c != null
? c.Value
: value;
}