James wrote:
For the setcookie, set the value as $pw or something, and then define $pw before setting the cookie, don't try to set a value like that.
To time out on browser close, just don't set a time value.
My reply:
Ok, I have done that and this is what I try to do..I am calling the page where it checks wether the cookie present, if not go to login, if so go on
This is the check:
<?php
if ($cookiename=="$pw")
{
header ("location: proceed.htm");
}
else
{
header ("location: login.php");
}
?>
But this gives a parse error...am i blind cause I can't seem to find the error
I have tried several versions...to figure out the error but can't find it....once it seemed to go but it then just showed the proceed.htm, while the login wasn't even done, so no cookie had been set
Help plz (and thanks for the replies so far)