session, session AAAARGH
| From: | Johannes Janson | Date: | Wed, 04 Apr 2001 17:33:41 +0000 |
| Subject: | session, session AAAARGH | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6502@lists.php.net to get a copy of this message | ||
Hi,
I just figured out that my session-management is
not working. I have a small, simple script to test
this:
<?
session_start();
session_register("SESSION");
if (! isset($SESSION)) {
$SESSION["count"] = 0;
echo "<li>Counter initialized, please reload this page to see it
increment";
} else {
echo "<li>Waking up session $PHPSESSID";
$SESSION["count"]++;
}
echo "<li>The counter is now $SESSION[count] ";
?>
But the counter stays at "0". And in the specified session.save_path
directory I have a new file every time I reload the page.
What is wrong??
TIA
johannes