Storing the entire session in a cookie has been standard in Rails for the last few years - is there an easy way to achieve something similar with ASP MVC?
By default, an
depends on what kind of data you want to store in the cookie, if you want just to store string, the following code will do:
HttpCookie cookie = new HttpCookie("username","sth"); cookie.HttpOnly = true; cookie.Expires = DateTime.Now.AddMonths(3); HttpContext.Current.Response.Cookies.Add(cookie);