Re: cookies on localhost WinXP

From: Date: Wed, 30 Jul 2003 19:34:06 +0000
Subject: Re: cookies on localhost WinXP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157580@lists.php.net to get a copy of this message
Can you try this example? Let's call the file cookie_test.php <? if (!empty($_COOKIE['test'])) { echo "The test cookie was sent by the browser\n"; } else { header('Set-Cookie: test=true'); echo "Trying to set the test cookie.<br />\n"; echo "<a href=\"./cookie_test.php\">Test</a>\n"; } ?> I think it's best to start simple. Hope this helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#157580) next »