User-821857111 posted
You can create a cookie in MVC like this:
Response.Cookies["YourCookie"].Value = some_value'
Response.Cookies["YourCookie"].Expires = DateTime.Now.AddYears(100);
Note that cookies belong to the browser, so if the user visits using a different browser or machine, the cookie won't be there.