i know this question has been asked many times but i dont know why i m unable to sort out this issue
<system.web>
<httpCookies httpOnlyCookies="true" requireSSL="false" domain=""/>
<sessionState mode="InProc" customProvider="DefaultSessionProvider" timeout="20" cookieName="id">
</system.web>
but its not working as required
can someone help me how to get it fixed or what i m doing wrong .
i have tried to get it fixed in code in Global.asax on App
protected void Application_EndRequest()
{
foreach (string s in Response.Cookies.AllKeys)
{
if (s.ToLower() == "id")
{
Response.Cookies[s].HttpOnly = true;
}
}
}
Enviroment: ASP.NET MVC
Regards