I have a login script which sets a session and checks the session variable at the beginning of each page. Now most my links are relative, however there are a couple that are absolute links. My question is, does the session variable get carried
over the absolute path. It seems to shoot out the "your not logged as the script below states sometimes and other times it works. I don't get it.
HERE IS MY CODE:
function check_valid_user()
{
global $valid_user;
if (session_is_registered("valid_user"))
{
return 1;
} else {
echo "YOU ARE NOT LOGGED IN";
echo "<BR>";
exit;
}
}
I than start a session at the beginning of each page and call out for this function
I did read about appending SID to pass the variable at the end of my url:
ex:
http://www.somewhere.com?SID/path1/path2....
is this something I should be doing?