Bug #4124: cookies and headers dont mix

From: Date: Thu, 13 Apr 2000 02:17:48 +0000
Subject: Bug #4124: cookies and headers dont mix
Groups: php.dev 
Request: Send a blank email to php-dev+get-17859@lists.php.net to get a copy of this message
From: tim.nelson@mindspring.com Operating system: win nt PHP version: 3.0.16 PHP Bug Type: Misbehaving function Bug description: cookies and headers dont mix When I use both setcookie and header the cookie does not get written. For example... The following writes a cookie properly setcookie("name", "value", time()+86400); The following does not... the cookie just never materializes. header("Location: nextpage.php3"); setcookie("name", "value", time()+86400); I am using identical code at mindspring and my local NT server, and mindspring works (v3.0.14 on alpha/Linux) but my machine does not (v3.0.16 intel/NT).

« previous php.dev (#17859) next »