I am trying to set cookie which expires in 10 sec in ASP.NET MVC3 Project. But its not exipring in 10 sec. Following is my code to set cookie:
HttpCookie loginCookie = new HttpCookie(cookieName, cookieValue);
loginCookie.Expires.AddSeconds(10);
Response.Cookies.Add(loginCookie);
While I checked in chrome settings it has following status:
Expires: When the browsing session ends
Any suggestions, should i add somenthing in web.config file