Correlation cookie dissapears

Jan 13, 2015 at 11:27 AM
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?
Jan 13, 2015 at 11:47 AM