Question about Session

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply

Mon Oct 07, 2002 11:24 pm

Hi all,

can anyone please help me with my session problem? I'm currently using PHP4.2.2 with Apache on Redhat 8.0.

Whenever I try to use session, it doesn't seem to work.. following is the sample code I use and the result printed out is always 1 no matter how many time I refresh..


echo "<p>You've been here $count times. Thanks!</p>";


I use phpinfo() to checked and found out that session is enable.... what have I done wrong?? thank you very much...


Tue Oct 08, 2002 1:36 am

I think you're problem is allready described here:

Greetz Daan


Tue Oct 08, 2002 3:21 am

Try this instead

Code: Select all

print "<p>You've been here {$_SESSION['count']} times. Thanks!</p>";


Tue Oct 08, 2002 6:00 pm

Thanks guys for advice :)

Post Reply