ASP.NET MVC Store TempData in Cookie -


Is there a way to go to tempadity store in a browser's cookie instead of the state of the session?

Thanks

najaf,

delete your cookies Try this for:

  Public Zero DeleteCookie (string name) {DateTime now = DateTime.UtcNow; String cookie = name =; Var cookie = new HTTP cookie (cookies, empty) {Explore = now. Aid Day (-1)}; HttpContext.Response.Cookies.Set (cookie); }  

Usage:

DeleteCookie ("__StrategyDatabase");

Comments