I am trying to set a cookie on the host machine and I am not able to. There are no errors, the cookie just never appears.Below is the code i am using. Does anyone see why the cookie is not getting to the computer?
HttpCookie cookie = new HttpCookie("Cookie Name");
cookie.Value = "Cookie Value";
Thanks in advance for any help given...
I'd start with http://msdn.microsoft.com/en-us/library/aa289495(v=vs.71).aspx
Try setting the Expires and Path properties on the Cookie too.
I am extremely new to cookies... is there a default path?
Default would be "/" and it will apply to your entire site, if you want it to only apply to your application "/VirtualDirectoryName"
I am sorry for not getting back sooner on this. That completely solved the issue. Thanks for the Help
This topic is now closed. New replies are no longer allowed.