Why won't asp.net create cookies in localhost?
Posted
by James McConnell
on Stack Overflow
See other posts from Stack Overflow
or by James McConnell
Published on 2008-12-23T22:15:56Z
Indexed on
2010/04/26
14:33 UTC
Read the original article
Hit count: 372
Okay, this is really kinda starting to bug me. I have a simple Web project setup located at: "C:\Projects\MyTestProject\". In IIS on my machine, I have mapped a virtual directory to this location so I can run my sites locally (I understand I can run it from Visual Studio, I like this method better). I have named this virtual directory "mtp" and I access it via http://localhost/mtp/index.aspx. All this is working fine.
However, whenever I try to create a cookie, it simply never gets written out? I've tried this in FF3 and IE7 and it just plain won't write the cookie out. I don't get it. I do have "127.0.0.1 localhost" in my hosts file, I can't really think of anything else I can do. Thanks for any advice.
James
© Stack Overflow or respective owner