Scenario: I have fetched the data and stored into session then cookie has created with session id.
second time i want to maintain different data in another cookie is it possible in mvc4?
home / developersection / forums / how to create multiple cookies in mvc4?
Anonymous User
09-Sep-2015HttpCookie cookie = new HttpCookie("mybigcookie");cookie.Values.Add("name", name);
cookie.Values.Add("address", address);
//get the values out
string name = Request.Cookies["mybigcookie"]["name"];
string address = Request.Cookies["mybigcookie"]["address"];