Hi,
I am using a cookie to store users id numbers. I am having trouble reading the cookie after it is set.
The cookie is set in a folder: \login\login.php and the other scripts reading the cookie are in a different folder: \general\content.php.
The code for setting the cookie is:
setcookie("myuser_id", $myuser_id);
The code for reading the cookie is:
$myuser_id = $HTTP_COOKIE_VARS['myuser_id'];
For some reason the cookie can only be seen by scripts in the login folder and not in the general folder.
Does anyone know why?
Any ideas would be appreciated,
Jimbo