ID: 14345 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Session related Operating System: windows2000 PHP Version: 4.0.6 New Comment:
That only applies when you are trying to access the cookie from the same page that wrote it. Since cookie information is sent to the server from the client with the header information, the server cant get the cookie until the header information is sent to it (eg from a page request, refresh, header redirect, etc). That's somewhat different than setcookie() outright not working on win2k/iis5 :) Previous Comments: ------------------------------------------------------------------------ [2001-12-04 17:17:04] [EMAIL PROTECTED] Not a bug, from the manual (http://uk.php.net/manual/en/function.setcookie.php): Common Pitfalls: * Cookies will not become visible until the next loading of a page that the cookie should be visible for. ------------------------------------------------------------------------ [2001-12-04 17:15:32] [EMAIL PROTECTED] setcookie does not send cookie to browser, you have to refresh the page for the cookie to be send, i cannot find any other solution ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14345&edit=1