FormsAuthentication.SetAuthCookie not working in IE but works in other browsers

Just found a fun little “feature” with setting cookies in asp.net.

 

Apparently there is a restriction when setting a cookie on a domain with an underscore in the name.  Not entirely sure WHY however since it appears that all other browsers do not have an issue.

Testing confirms what accessing the site via IP address sets the cookie correctly or using a different domain name for the server.

 

Just strange.

One Response to “ “FormsAuthentication.SetAuthCookie not working in IE but works in other browsers”

  1. Ernesto says:

    I personally found this particular posting ,
    “FormsAuthentication.SetAuthCookie not
    working in IE but works in other browsers | Orwin.
    ca”, rather entertaining not to mention it ended up being a
    very good read. I appreciate it,Jodi

Leave a Reply to Ernesto Cancel reply

Your email address will not be published. Required fields are marked *