Setcookie() and header()

From: Date: Wed, 15 Jan 2003 04:52:58 +0000
Subject: Setcookie() and header()
Groups: php.general 
Request: Send a blank email to php-general+get-131653@lists.php.net to get a copy of this message
After I set a cookie and then send a redirect header, the cookie doesn't show up, but the browser successfully redirects. setcookie("test", "blahblah", time() + 1440); header("Location: http://www.mywebsite.com/login.php"); However, if I take out the header() statement, then the cookie is successfully set. Anyone else having this problem? J. Alden Gillespy (aka Dogga) Microsoft Beta Tester: - Office 11 - Content Management Server (CMS) 2002 - Systems Management Server (SMS) 2003

« previous php.general (#131653) next »