Hello,
I'm trying to check if a user is logged in. I'm using this
if (isset($_COOKIE['name'])) {
echo 'something';
}
It works fine in the one file. However when I put this another file and include it in the first file, it doesn't work! I can't figure out why. Seems like it should be a simple fix, I just can't figure it out, any ideas?
Thanks for your help!
I'm trying to check if a user is logged in. I'm using this
if (isset($_COOKIE['name'])) {
echo 'something';
}
It works fine in the one file. However when I put this another file and include it in the first file, it doesn't work! I can't figure out why. Seems like it should be a simple fix, I just can't figure it out, any ideas?
Thanks for your help!