RE: Session prob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:  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?

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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux