ASP.NET MVC TempData in browser cookie -
ASP.NET MVC TempData in browser cookie - i trying utilize custom itempdataprovider provider store tempdata in browser's cookie instead of session state. however, works fine except unable remove cookie response stream after reading it. any ideas? thanks! public class cookietempdataprovider : itempdataprovider { internal const string tempdatacookiekey = "__controllertempdata"; httpcontextbase _httpcontext; public cookietempdataprovider(httpcontextbase httpcontext) { if (httpcontext == null) { throw new argumentnullexception("httpcontext"); } _httpcontext = httpcontext; } public httpcontextbase httpcontext { { homecoming _httpcontext; } } protected virtual idictionary<string, object> loadtempdata(controllercontext controllercontext) { ...