PHP4 - Can't generate Session

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

DoppyNL

Postby DoppyNL » Wed Oct 16, 2002 3:12 am

You can't acces you're session-variables?? see this sticky post.

Greetz Daan

Jay

Postby Jay » Wed Oct 16, 2002 1:12 pm

Try this instead:

Code: Select all

<?
session_start();
$_SESSION['count'] = (@$_SESSION['count'])? $_SESSION['count']++:0;
print "The counter is ".$_SESSION['count'];
?>


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 3 guests