debuging Internal browser and cookies |
Site Admin
|
You should not expect a cookie issued by the server to appear in the $_COOKIE array immediately. It may appear in the next request and it will happen only if the cookie is correct. Please take a time to learn how the cookies are working: http://tools.ietf.org/html/rfc2965 and http://en.wikipedia.org/wiki/HTTP_cookie
In short, suppose your server issued a cookie header, then after it is received by the browser, all _SUBSEQUENT_ requests that the browser will run against the same server will be accompanied with that cookie until the cookie has expired. If cookie is not set, check the headers with HTTP Watch or Live HTTP Headers plugins for the browsers (note: they will work only with EXTERNAL browsers, not with embedded, but after you get the cookies working in external, they will also work with embedded). With your example, it's absolutely unclear what is in HTTP_COOKIE_DOMAIN and HTTP_COOKIE_PATH constants. I'd recommend you not to use them at all. Set path to "/" and empty domain. Browsers are good enough to assign appropriate domain for the cookie they get from server because browsers always know the URL and the domain. |
||||||||||||
_________________ The PHP IDE team |
debuging Internal browser and cookies |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by