waveparticle
Active Member
- Joined
- Dec 4, 2013
- Messages
- 96
- Reaction score
- 0
Hi people,
So I'm trying to make a remember me checkbox in my login system but it doesn't work. Here's my code:
So I did that and the cookie gets set. But when I check if the Cookie is set to modify my html, it doesn't work.
Let's say I need to see if the Cookie is checked to enter user panel, it doesn't work but the cookie is set!
Here is the code I used to check if cookie is set:
It doesn't echo though.
I appreciate your help.
Thanks.
So I'm trying to make a remember me checkbox in my login system but it doesn't work. Here's my code:
PHP:
if($checkbox== TRUE){
setcookie('lolfish', $bob['lolfish'], time() +10);
header('Location: ../index.php');
}
So I did that and the cookie gets set. But when I check if the Cookie is set to modify my html, it doesn't work.
Let's say I need to see if the Cookie is checked to enter user panel, it doesn't work but the cookie is set!
Here is the code I used to check if cookie is set:
PHP:
if(isset($_COOKIE['lolfish'])){
echo "LOL FISH!";
}
It doesn't echo though.
I appreciate your help.
Thanks.