I'm developing a php game, or trying anyways, and for my closed alpha and beta testing, I've got the game code set aside in a different directory. Not really all that fancy I guess, since as long as someone knows what directory to look in, they'll be able to join the testing, but I've had a problem crop up today. I haven't been working on the game for a while (real life got in the way - go figure), and in the time I wasn't working on it, I switched to a different server. Now the new server had different permissions set, etc, and so I had to tweak the code a little to get it to work again. The new server requires me to use the line import_request_variables("gP"); to fetch my session variables. Now, everything was working without it when I was on the old server, and that was fine. On the new server, almost everything works as long as I add on that one line of code. The main pages and pretty much everything else in other directories work fine with just the one line added. But for the game dev directory, it doesn't seem to work. It still registers the session variable I call as being undeclared (isset returns false). As such, none of the user-specific variables load, and all that jive. But even stranger, at random moments (it's happened twice on different sessions that I and my coding partner have tried), it will decide to actually read the session variable, but even when it does, it doesn't load the page properly. What it's supposed to do is load up a list of that user's characters (for the game), but instead it lists all the characters available. Either that or it loads only the previous user's characters (like the session variable is one step behind or something)... I've looked as thoroughly as I could through the code I've written (and a warning, I'm sometimes pretty messy with my code), but I can't figure out what's causing the problems. On the user login page, it sets the session variable, and then as soon as you go to the character selection/creation page, it's like it just disappears.
Help? Please?