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?
Thanks in advance for any help given...
HttpCookie cookie = new HttpCookie("Cookie Name");
cookie.Value = "Cookie Value";
I'd start with http://msdn.microsoft.com/en-us/libr...(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
Originally Posted by cpradio