(This is a cross-post to the Linux help forum - I'm desperate!).
I am trying to get sessions working on Linux, Apache 1.3.26 and PHP 4.1.2 (Debian testing).
<?php
$page=$_COOKIE['hits'];
setcookie('hits', ++$page);
echo $page;
?>
works as expected. However
<?php
session_start();
session_register('hits');
++$hits;
echo $hits;
?>
simply produces the number 1 after reloading the page several times.
The session_id() function registers a valid session code (I can find the session file in my /tmp directory).
Any ideas? I'm really in a fix!
Thanks for any help.
Rory