I created a game called Mystic Crusade (www.mysticcrusade.com) and it tends to work perfectly except for one thing, sometimes it doesn't register the session, i guess. For some reason, some of my users have to log in several times before they are logged in to stay. This is what I mean...
Most users log in and it takes them to their "home" page, then they can move around and do stuff in the game.
But some users log in, it takes them to their "home" page (which you have to be logged in to see) but when they try to move around the page, it's like as if they were not logged it. If you are not logged in, it kicks you off the game and you have to sign in again. These users will sign in again and again and it will eventually work. This problem has never affected me, but it does effect some users every time.
I use $_SESSION to register the user, the it takes them to their 'home' page via
PHP Code:
header('Location: home.php');
exit;
and I do start the session on every page with session_start();
Please help me, I just don't understand why it seems to work only some of the time