Re: Cookie behaviour

From: Date: Mon, 23 Aug 2004 16:20:24 +0000
Subject: Re: Cookie behaviour
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194489@lists.php.net to get a copy of this message
--- Michael Purdy <michael.purdy@optusnet.com.au> wrote: > <script language="php"> > setcookie('cat','large',time()+3600); > setcookie('dog','small',time()+3600); > </script> > > The outcome of this script is that only the LAST cookie is successfully > stored. This seems unlikely. It's possible that neither of these statements is successful (perhaps your script has output prior), and the only reason you think the first one is being set is because it was set from a previous test. You can rule this out by using unique names for every single test, and use something like print_r($_COOKIES) to see exactly what cookies the browser included in its request for the page. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#194489) next »