I'm moving an application that I'm in the trying to move to a new platform. It was running fine on an older Linux platform with PHP 4.0.3 and Apache 1.3.14. The new platform is also Linux, with PHP 4.2.2 and Apache 1.2.26 -- with register_globals on. (I just upgraded it from 4.2.2.36 to 4.2.2.69 which is the latest rpm on SuSE's site, with no change in the problem.)

The symptom is that when I attempt to save a session variable, it creates the session file in /tmp, but with a zero length - no variable names or values stored. (/tmp is globally read/write) This happens not only with the application I'm moving, but also with the "world's simplest global test pages" below.

[page1.php]
<?
session_start();
session_register('test');
$test='foobar';
header('Location: page2.php');
?>

[page2.php]
<?
session_start();
echo "test is $test<br>";
?>

You can try it yourself at http://4.43.81.92/page1.php and also see PHPinfo at http://4.43.81.92/phpinfo.php

Because no one else seems to have this problem, I assume it's something on my system, or in the way things are set up, as opposed to a PHP code problem. What I'm looking for is any hints or tips of how to begin debugging it and finding how come it will create the session files, but leave them with zero length and no information...

Any suggestions would be appreciated...
Lee Stewart


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to