--- Cesar Aracena <[EMAIL PROTECTED]> wrote: > I have the following code to first start a session and then write a > cookie... is that so hard?
Not hard at all. However, when trying to identify a problem, it is much easier to try to isolate it. Forget the session, and see if you can set a cookie: <? header('Set-Cookie: foo=bar'); ?> Try to read it on another page: <? echo $_COOKIE['foo']; ?> If that works, slowly modify it until it is identical to the code in question, testing after each step. Also, make sure the URL you are spcifying in the Location header is an absolute URL. And, if you are on IIS, the Location header (and response status code change) might be what is causing the problem, as IIS has a known bug related to this. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php