Re: Possible Cookie Bug

From: Date: Wed, 13 Mar 2002 16:27:08 +0000
Subject: Re: Possible Cookie Bug
References: 1  Groups: php.dev php.qa 
Request: Send a blank email to php-dev+get-81158@lists.php.net to get a copy of this message
Javascript is client-side. It is a completely different thing. But what you are asking for in a server-side environment makes absolutely no sense. If you do: setcookie("foo","bar"); What you are asking for is for $foo to automatically be set to "bar" by the setcookie() call. This will not happen. If you want $foo set, set it. You have all the information. Simply do: $foo = "bar"; setcookie("foo",$foo); Making something like this automatic removes flexibility. And removing flexibility to add something that is trivial to do yourself makes no sense. You simply need to change your thinking as to how cookies work. -Rasmus

« previous php.dev (#81158) next »