Re: Autoload of cookies on Linux fails, Win32 works???
| From: | Miguel Cruz | Date: | Sun, 28 Apr 2002 21:35:40 +0000 |
| Subject: | Re: Autoload of cookies on Linux fails, Win32 works??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95025@lists.php.net to get a copy of this message | ||
On Sun, 28 Apr 2002, Joseph Smith wrote:
> Assuming I've got a cookie called "loggedin" defined as "12345"
>
> In 4.2.0 on Win32, my cookies are preloaded so when I do
>
> if (isset($loggedin))
> echo $loggedin
>
> It checks to see if there is a variable named $loggedin that was
> created by autoloading of cookies, then it prints "12345"
>
> On linux, this does not happen. In fact, there appears to be no
> autoloading of variables.
>
> Is this intentional or is there a configuration setting I'm missing?
Yes, your Windows PHP server is configured insecurely (register_globals
is on).
Try isset($_COOKIE['loggedin'])
miguel