This project has moved and is read-only. For the latest updates, please go here.

Correlation cookie dissapears

Jan 13, 2015 at 12:27 PM
We run this code in Global.asax
private void Application_EndRequest(object sender, EventArgs e)
        {
            if (_requireSSLForHttpCookies)
            {
                if (Response.Cookies.Count > 0)
                {
                    foreach (var s in Response.Cookies.AllKeys)
                    {
                        Response.Cookies[s].Secure = true;
                    }
                }
            }
        }
We have found that doing so causes the correlation cookie to disappear. Why is this?