Ninjiangstar
New member
Hi. I made a website that has a login system.
The cookies worked fine until I changed the layout.
Could you tell me why this is happening?
Login Code:
setcookie("loginuser", $username, time()+2592000);
setcookie("loginpassword", $password, time()+2592000);
(I tried checking my cookies, and I displaying my cookies when I logged in, but it doesn't even MAKE a cookie. So there's something wrong with the cookie-making system. I even tried another computer, and tried deleting my cookies before trying. Nothing works.)
@Relex, the error_reporting did not work... nothing showed up...
now the "print_r($_COOKIE);" line shows
Array( [_unam] => 8ed36fc-12de5947345-1f2aef51-1 )
The cookies worked fine until I changed the layout.
Could you tell me why this is happening?
Login Code:
setcookie("loginuser", $username, time()+2592000);
setcookie("loginpassword", $password, time()+2592000);
(I tried checking my cookies, and I displaying my cookies when I logged in, but it doesn't even MAKE a cookie. So there's something wrong with the cookie-making system. I even tried another computer, and tried deleting my cookies before trying. Nothing works.)
@Relex, the error_reporting did not work... nothing showed up...
now the "print_r($_COOKIE);" line shows
Array( [_unam] => 8ed36fc-12de5947345-1f2aef51-1 )