S
Shane Thomas
Hello,
I'm having difficulty handling cookies with paths other than "/". An
HttpWebRequest object returns these headers:
Date: Tue, 26 Apr 2005 21:29:39 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.10
Set-cookie: phpusid=12345; path=/; expires=Wednesday, 09-Nov-2008 23:12:40
GMT,data=deleted; expires=Mon, 26-Apr-2004 21:29:38 GMT; path=/stats;
domain=www.somesite.com,data=deleted; expires=Mon, 26-Apr-2004 21:29:38 GMT;
path=/stats; domain=www.somesite.com
X-Powered-By: PHP/4.3.10
Connection: close
Content-Type: text/html
However iterating through a cookie collection (TheResponse.Cookies =
TheRequest.CookieContainer.GetCookies(TheRequest.RequestURI)) only contains
the cookies with a path of "/".
How do I access the cookies with paths other than "/"? Can I gather them all
in one collection?
Thanks,
-shane
I'm having difficulty handling cookies with paths other than "/". An
HttpWebRequest object returns these headers:
Date: Tue, 26 Apr 2005 21:29:39 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.10
Set-cookie: phpusid=12345; path=/; expires=Wednesday, 09-Nov-2008 23:12:40
GMT,data=deleted; expires=Mon, 26-Apr-2004 21:29:38 GMT; path=/stats;
domain=www.somesite.com,data=deleted; expires=Mon, 26-Apr-2004 21:29:38 GMT;
path=/stats; domain=www.somesite.com
X-Powered-By: PHP/4.3.10
Connection: close
Content-Type: text/html
However iterating through a cookie collection (TheResponse.Cookies =
TheRequest.CookieContainer.GetCookies(TheRequest.RequestURI)) only contains
the cookies with a path of "/".
How do I access the cookies with paths other than "/"? Can I gather them all
in one collection?
Thanks,
-shane