I am trying to learn about sess vars, and have written the following code.
<?
print ("$username<br>");
session_start();
session_register('sess_username');
session_register('sess_count');
$sess_count++;
$sess_username = $username;
print ("$sess_username$sess_count<br>");
?>
It runs fine, I get a username printed out with an incrementing number on the end. But in the middle I get the following error.
Stuart Bailey
Warning: Cannot send session cache limiter - headers already sent (output started at /home/breck99/public_html/members/memberauth.php:2) in /home/breck99/public_html/members/memberauth.php on line 3
Stuart Bailey3
Can somebody tell me what I'm doing wrong,
Cheers
Stu