asp.net - Cookies not being set by IIS in HTTP header -


I use asp.net form authentication that works fine online, but Internet Explorer, Firefox, and Chrome . As far as I can see, IIS is not sending a set-cookie HTTP header when a page is being requested:

  get http: // 127.0.0.1:81 / HTTP / 1.1 Approved: Text / html, App / XHTML + XML, * / * Accepted-language: NB -NO User-agent: Mozilla / 5.0 (Windows NT 6.3; WA6464; Trent / 7.0; RV: 11.0) Accept like Gecho-encoding: gzip, deflate Host: 127.0.0.1:81 DNT: 1 connection: Keep-Elive HTTP / 1.1 200 OK cache-control : Private Content-Type: text / html; Charset = utf-8 variant: Accept-encoding server: Microsoft-IIS / 8.0 X-espnet-version: 4.0.30319 by X-Power: ASP.NET Date: Wednesday, 08 October 2014 19:24:58 GMT Content- Length: 13322   

I sent 127.0.0.1 www.example.com to \ Windows \ System32 \ drivers \ etc \ host and file Instead of logging in, but there is no effect here on my web Config settings are:

  & lt ;! - Authentication of asp.NET forms is enabled by default - & gt; & Lt; Authentication mode = "form" & gt; & Lt ;! - Set the page to redirect when the user tries to reach restricted resources - & gt; & Lt; Forms loginUrl = "~ / account / login aspx" timeout = "2880" /> & Lt; / Authentication & gt;    

I'm not getting any cookies, while always setting a dummy cookie ASP.NET web pages are sent in similar jobs:

  /// & lt; Summary & gt; Use the /// browser to force cookies to use. /// sets an empty cookie /// & lt; / Summary & gt; Zero Force Cookies Required () (If Required.Cookies == Free) Cookies.Count == 0) {// No Cookies, So A Free Blank A Var cookie1 = Set New HttpCookie (FormTimifications.Form Cookie Name , String.optim) {end time = date time.Now add years (-1)}; Response.Cookies.Add (cookie1); }} Safe Override Zero OnInit (EventArgs e) {base.OnInit (E); // For the use of cookies, if any force cookies are sent to the forefather; }   

I have not done this before, have some Microsoft patches or upgraded broken ASP.NET form certification? One way to check my own solution I think is to clean cookies. This is the set-cookie HTTP header sent by the IIS server.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -