note 18366 modified in function.setcookie by john

From: Date: Sat, 30 Nov 2002 16:28:44 +0000
Subject: note 18366 modified in function.setcookie by john
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40163@lists.php.net to get a copy of this message
If you're running on php 4.1.x, just use the $_COOKIE array. It's already globalized... and to my best knowledge, if you want to access a cookie name without declaring global $var, just use the $GLOBALS[$var] array... [Editor's Note: the $var variable (assuming it is susposed to represent a cookie) will only be available if the register_globals directive is active. This is regardless of attempting to bring it into the current scope via. a global statement.] ~ Andrew Heebner, EvilWalrus.com --was-- If you're running on php 4.1.x, just use the $_COOKIE array. It's already globalized... and to my best knowledge, if you want to access a cookie name without declaring global $var, just use the $GLOBALS[$var] array... ~ Andrew Heebner, EvilWalrus.com http://www.php.net/manual/en/function.setcookie.php

« previous php.notes (#40163) next »