ok.... I am quite new to PHP, but can someone tell me what is wrong with this??
on the page named "temp.php"
<?
$user="myusername";
$pass="mypassword";
session_start();
session_register("user","pass");
$sid=session_id();
print "<a href=\"http://www.racreation.com/temp2.php?s=$sid\">Click me</a>";
?>
on the page named "temp2.php"
<?
session_start();
if ($pass == "mypassword") {
echo "YAY!!";
}
?>
When I follow the link on page "temp.php", the password is correct, and it writes YAY!!, but I also get this message:
Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/psa/home/vhosts/racreation.com/httpdocs/temp2.php:5) in /usr/local/psa/home/vhosts/racreation.com/httpdocs/temp2.php on line 6