I have this weird problem with setting up cookies with PHP. Everything worked fine until this morning when i uploaded my script to the server.
Here is some of my code
if (!isset($_COOKIE["loggedin"])){
show login form } else { show content }
This is in my login page
setcookie("loggedin", "true", time()+3600,"/","mydomain.com");
I know using cookies for logins isn't the best practice but it's a dummy site. Any who... 'till this morning, the cookies worked properly, but now they won't. I had a similar issue before, but i can't remember how i solved it :(
Any help is very appreciated!