Hi there!
I'm having a strange problem with a login script i made, using cookies.
It's acting funny and i can't figure the problem. I had a similar one and works ok. The script is a login script that saves variables on cookies. It works fine if i don't add the "header()" line, but it won't save cookies if i do!
Please help! I give you the code of a modified "login.php", without the user verification. It WON'T save cookies anyway.
a form calls this LOGIN.PHP:
setcookie('email', $userInfo[0], time()+(3600*24));
setcookie('nome', $userInfo[1], time()+(3600*24));
setcookie('apelido', $userInfo[2], time()+(3600*24));
header("Location: pe.php"); //returns to the form page
Without the "header()" i can login and go back in browser, than i'm logged! This is strange 🙁