How to create new cookie if the cookie is already create for same application? 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?
HttpCookie 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"];