RE: [PHP-WIN] Session prob
| From: | Mike Brum | Date: | Sun, 05 Oct 2003 17:12:06 +0000 |
| Subject: | RE: [PHP-WIN] Session prob | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21679@lists.php.net to get a copy of this message | ||
You need to start the session.
sesstion_start();
Read up - http://us3.php.net/manual/en/function.session-start.php
-----Original Message-----
From: Disko_kex [mailto:disko_kex@swedish-mushroom.com]
Sent: Sunday, October 05, 2003 12:24 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Session prob
<?php
if (! isset($_SESSION['count'])) {
$_SESSION['count'] = 1;
}
else {
$_SESSION['count']++;
}
print $_SESSION['count'];
?>
Why isn´t this working? Is there something I done wrong during the
installation or what?