michaelk46 — 2013-02-27T08:07:19-05:00 — #1
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...
cpradio — 2013-02-27T08:42:21-05:00 — #2
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.
michaelk46 — 2013-02-27T09:15:28-05:00 — #3
I am extremely new to cookies... is there a default path?
cpradio — 2013-02-27T09:33:54-05:00 — #4
Default would be "/" and it will apply to your entire site, if you want it to only apply to your application "/VirtualDirectoryName"
michaelk46 — 2013-03-05T08:45:34-05:00 — #5
I am sorry for not getting back sooner on this. That completely solved the issue. Thanks for the Help