Re: Re: sessions
| From: | Monty | Date: | Fri, 26 Jul 2002 18:30:18 +0000 |
| Subject: | Re: Re: sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109844@lists.php.net to get a copy of this message | ||
Is any of the code you posted actually in a Function? What changed for
sessions recently in PHP is the register globals option in the php.ini file.
Vars are not automatically global anymore, so, you have to do it manually:
global $old_user, $valid_user;
$old_user = ...
$valid_user = ...
Maybe this is what's causing the problem.
Monty
> From: linuxgeek23@hotmail.com (Tyler Durdin)
> Newsgroups: php.general
> Date: Fri, 26 Jul 2002 18:12:13 +0000
> To: php-general@lists.php.net
> Subject: Re: [PHP] Re: sessions
>
> Still getting the same message. This script used to work perfectly in an
> older version of php. Could it be a problem with how I am setting the
> sessions. Has anything changed with how we code sessions?
>
>