This is a discussion on RE: [PHP] Debugging a Session Problem within the PHP General forums, part of the PHP Programming Forums category; Sorry, I am stumped. I don't see any problems in the .ini file. Have you tried some simple code ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
* Thus wrote Lee Stewart (lstewart@dsgroup.com):
> Using the $_SESSION[] style produces the same results... Zero length > session file in /tmp, and no data passed... (available at > http://4.43.81.92/page1a.php) You did see my post about space left on /tmp? > > So where do I go from here... Is there any way to debug it? Like I > said, I suspect it's not a PHP code bug, but I'm at a loss as to where to > go from here (other than re-writing the entire application in some other > language -- which I really don't want to do)... another language? how dare you say such thing here on this list :) Curt -- "I used to think I was indecisive, but now I'm not so sure." |