hi,
I have got a problem with the sessions under php 4.2.1. I have build it on an ppc linux system. Everything is running good, but not the session-feature.
I have tested the small skript from php.net:
<?php
if (!session_is_registered('count')) {
session_register('count');
$count = 1;
}
else {
$count++;
}
?>
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>;
<?php
# the <?php echo SID?> (<?=SID?> can be used if short tag is enabled)
# is necessary to preserve the session id
# in the case that the user has disabled cookies
?>
To continue, <A HREF="nextpage.php?<?php echo SID?>">click here</A>
So good so far, but the counter doesn't increase.
Where is the problem?
Thanks,
Stephan