FC4 & PHP sessions

Jens Ruda jensruda at hotmail.com
Sat Jul 16 17:01:33 UTC 2005


Do I have to do something to activate sessions in PHP? I have tried one of 
the simple examples from php.net, but the output is always "Hello visitor, 
you have seen this page 1 times".

I have no problems with sessions in FC3.

Php.net example:
-----------
<?php
if (!session_is_registered('count')) {
   session_register('count');
   $count = 1;
} else {
   $count++;
}
?>

<p>
Hello visitor, you have seen this page <?php echo $count; ?> times.
</p>

<p>
To continue, <a href="nextpage.php?<?php echo strip_tags(SID); ?>">click
here</a>.
</p>
-----------

_________________________________________________________________
Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.com/




More information about the fedora-list mailing list