RE: [PHP] php session not persisting
| From: | Johnson, Kirk | Date: | Tue, 03 Jun 2003 20:21:16 +0000 |
| Subject: | RE: [PHP] php session not persisting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150060@lists.php.net to get a copy of this message | ||
> Thanks. I'm using PHP-4.3.1.
>
> The problem is not with $_SESSION. I used
> session_is_registered("sess_var");
> to check from the second script and cannot see the
> variable("sess_var"). Can
> anyone tell me why?
Your code should work for register_globals "on". Check that:
- php.ini is where it is supposed to be (/usr/local/lib/, I think).
- register_globals is really to set to on in php.ini.
- that cookies are enabled in your browser.
- you don't have an .htaccess file in your directory with register_globals
turned off in it.
Kirk