How to resolve cookie path attribute mapped to root folder in ASP.NET
protected void Application_EndRequest(Object sender, EventArgs e)
// Iterate through any cookies found in the Response object.
foreach (string cookieName in Response.Cookies.AllKeys)
Response.Cookies[cookieName].Secure = true;
Response.Cookies[cookieName].Path = ConfigurationManager.AppSettings["UserDefiniedCookiePathFilter"];
how can i achieve this.is there any common code or any web config setting to set default path of cookie?
i want to do it from global.asax file.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)