Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have bunch of solutions here dude.. Just feel free to choose among these solutions which caters your needs <br/><br/></p> <ul> <li><p>In Global.asax, overwrite the Session_Start method as follows.</p> <pre><code>&lt;script runat="server"&gt; void Session_Start(object sender, EventArgs e) { if(Response.Cookies.Count &gt; 0) foreach(string s in Response.Cookies.AllKeys) if(s == System.Web.Security.FormsAuthentication.FormsCookieName || s.ToLower().Equals("asp.net_sessionid") ) Response.Cookies[s].HttpOnly = false; </code></pre> <p>} </p></li> </ul> <p><br/> <strong>reference:<a href="http://nerd.steveferson.com/2007/09/14/act-sessionid-and-login-problems-with-asp-net-20/#.URiXUqWzd9c" rel="nofollow">http://nerd.steveferson.com/2007/09/14/act-sessionid-and-login-problems-with-asp-net-20/#.URiXUqWzd9c</a></strong><br/><br/></p> <ul> <li><p>Note that in ASP.NET 1.1 the System.Net.Cookie class does not support the HttpOnly property. Therefore, to add an HttpOnly attribute to the cookie you could add the following code to your application's</p> <p>Application_EndRequest event handler in Global.asax:<br/></p> <pre><code>protected void Application_EndRequest(Object sender, EventArgs e) { string authCookie = FormsAuthentication.FormsCookieName; foreach (string sCookie in Response.Cookies) { if (sCookie.Equals(authCookie)) { Response.Cookies[sCookie].Path += ";HttpOnly"; } } } </code></pre></li> </ul> <p><br/><br/> <strong>reference: <a href="http://blogs.msdn.com/b/dansellers/archive/2006/03/13/550947.aspx" rel="nofollow">http://blogs.msdn.com/b/dansellers/archive/2006/03/13/550947.aspx</a></strong><br/><br/></p> <ul> <li><p>Add this to your Global.asax</p> <pre><code>void Application_EndRequest(Object sender, EventArgs e) { if (Response.Cookies.Count &gt; 0) { foreach (string s in Response.Cookies.AllKeys) { if (s == "ASP.NET_SessionId") { Response.Cookies["ASP.NET_SessionId"].HttpOnly = false; } } } </code></pre> <p>}</p></li> </ul> <p><strong>reference: from this forum <a href="http://forums.asp.net/p/955272/1177574.aspx#1177574" rel="nofollow">http://forums.asp.net/p/955272/1177574.aspx#1177574</a></strong><br/><br/> You could also try this Post <a href="http://www.hanselman.com/blog/HttpOnlyCookiesOnASPNET11.aspx" rel="nofollow">HttpOnly Cookies on ASP.NET 1.1</a> by Scott Hanselman but its ASP.NET 1.1</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload