[resolved] ridiculously easy problems, but they have me stumped (cookies)
ok, im an idiot, simple things stump me.
for instance, this beauty!
1. I can't display/access cookies. I can make them, see them if I browse to the file, but when I use:
I get nothing, no output (names of cookies are correct). to make them I use:
any ideas, its driving me crazy
ok, im an idiot, simple things stump me.
for instance, this beauty!
1. I can't display/access cookies. I can make them, see them if I browse to the file, but when I use:
Code:
echo $_COOKIE['siteLogin'];
if (isset($_COOKIE['test'])){
echo "worky";
}else{
echo "no cookie here";
}
I get nothing, no output (names of cookies are correct). to make them I use:
Code:
@setcookie('siteLogin', $cookie, time() + 31104000);
@setcookie("test", "lol", time() + 36000);
any ideas, its driving me crazy
Last edited:








