RE: [PHP] Debugging a Session Problem
| From: | Johnson, Kirk | Date: | Fri, 25 Jul 2003 22:36:54 +0000 |
| Subject: | RE: [PHP] Debugging a Session Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156952@lists.php.net to get a copy of this message | ||
Sorry, I am stumped. I don't see any problems in the .ini file. Have you
tried some simple code in "register_globals off" style?
<?
session_start();
$_SESSION['test'] = 'foobar';
header('Location: page2.php');
?>
<?
session_start();
echo "test is {$_SESSION['test']}<br>";
?>
Kirk
> -----Original Message-----
> From: Lee Stewart [mailto:lstewart@dsgroup.com]
> Sent: Friday, July 25, 2003 4:27 PM
> To: php-general@lists.php.net
> Subject: RE: [PHP] Debugging a Session Problem
>
>
> I agree that it's probably a config problem -- somewhere...
>
> Yes, the session ID is passed correctly, but since page1.php
> doesn't end up
> with any variables or values in the session file, so
> regardless that it has
> the right session ID, there's nothing in the session file to
> restore...
>
> The php.ini file is in /etc/php.ini (but that's where it's
> supposed to be
> in this distribution), and phpinfo shows it there, and when I turn
> register_globals on and off there, I see it change both in
> phpinfo and from
> a php script.
>
> And if you want to look, a copy of my php.ini is available at
> http://4.43.81.92/phpini.txt