sessions - how to ? - help

From: Date: Thu, 06 Jan 2000 14:39:35 +0000
Subject: sessions - how to ? - help
Groups: php.version4 
Request: Send a blank email to php-version4+get-8957@lists.php.net to get a copy of this message
This message was sent from Geocrawler.com by "Matjaz" <matjaz.ostroversnik@zrs-tk.si> Be sure to reply to that address. Hi ! I have the latest PHP 4 from cvs (on Linux RH 6.1, Apache 1.3.9). Below is slightly modified script for session management. It is taken from the manual, but it doesnt work. I am getting "Undefined variable count and xx". What am I doing wrong? <?php session_register("count"); session_register("xx"); $count++; $xx++; ?> Hello visitor, you have seen this page <? echo $count; ?> times.<p> <? echo "the is necessary to preserve the session id"; echo "in the case that the user has disabled cookies"; echo "<p>-$PHP_SELF-<p> <p>$xx<p>"; ?> <? echo "To continue, <A HREF="$PHP_SELF">click here</A>" ?> Geocrawler.com - The Knowledge Archive

« previous php.version4 (#8957) next »