Michael R. Wayne wrote:

In my continuing efforts to actually get sessions to work, I upgraded
to PHP 4.3.6 and apache 1.3.31.  This did not make the slighest
difference.

So, does ANYone have ideas of how to debug this? Or is PHP simply
broken and no longer able to maintain sessions?


/\/\ \/\/




I've just been debugging some session problems. Successfully, but there is something rather brittle in there somewhere and almost zero portability between mod_php and PHP CGI with anything but the simplest code. Perl develops a rosy glow under such circumstances. It would have been quicker for me to set cookies explicitly and manage my own sessions. However...


Have you tried a trivially simple sessions script? There's one in the manual to increment a counter. Assuming mod_php:

<?php
session_start();
if (!isset($_SESSION['count'])) {
  $_SESSION['count'] = 0;
} else {
  $_SESSION['count']++;
}
echo "<html><head></head><body>";
echo $_SESSION['count'];
echo "</body></html>";
?>

If this doesn't work, there's a problem with your computer setup. If it does, there's a problem with your code. But then it would give you a base from which to build complexity, heading back to your code as is now, until something breaks...


PWR.

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



Reply via email to