FC4 & PHP sessions

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

 



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/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux