Question about Session

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply

Question about Session

Post by xboy » 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...


Post by DoppyNL » Tue Oct 08, 2002 1:36 am

I think you're problem is allready described here:

Greetz Daan


Post by Jay » Tue Oct 08, 2002 3:21 am

Try this instead

Code: Select all

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


Post by xboy » Tue Oct 08, 2002 6:00 pm

Thanks guys for advice :)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests