I have an application that runs on SSL, I have already added the following into my web.config, under System.Web.
<httpCookies requireSSL="true" httpOnlyCookies="true" lockItem="true" />
But I still get one unsecured cookie by the name of "cookieSesssion1". It's not being marked as secure.
Can you please let me know I can mark it as secure.
EDIT: In addition to the Web.config directive, I have the following code in my Global.asax file as well.
protected void Application_EndRequest(object sender, EventArgs e)
{
if (Response.Cookies.Count > 0)
{
foreach (string s in Response.Cookies.AllKeys)
{
Response.Cookies[s].Secure = true;
}
}
}
Following is the screenshot of a firebox debug:
What am I missing, please help