Re: [PHP] Autoload of cookies on Linux fails, Win32 works???
Actually.. I see now... Windows doesn't care about cookie case. Linux does. However, I still can't get the value from the $_COOKIES array. It tells me it's defined, but doesn't return the value of the cookie. Any thoughts? J - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Joseph Smith" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, April 28, 2002 4:35 PM Subject: Re: [PHP] Autoload of cookies on Linux fails, Win32 works??? > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Autoload of cookies on Linux fails, Win32 works???
Thanks, but when I tried this.. I consistently get "No Cookie!!" Yes, the cookie is set.. I can delete the cookies and a new one gets created. - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Joseph Smith" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, April 28, 2002 4:35 PM Subject: Re: [PHP] Autoload of cookies on Linux fails, Win32 works??? > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Autoload of cookies on Linux fails, Win32 works???
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Autoload of cookies on Linux fails, Win32 works???
I'm confused.. 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? Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php