Originally posted by maddudemike
yeah store sessions in your MYSQL database. Then when they goto or get sent to scoreboard.php check their ip match it to a session then check for the gamename in mysql associated with that session.
maddudemike, please, don't give bad advices if you are not familliar with the matter. What you're suggesting will work but is unnecessary overhead and will make the developer code more.
Sessions are stored in MySQL db in certain circumstances, for instance - when working with clustered servers.
Also, you can specify your own session_save_handler so you don't have to re-write the entire session logic.
Solution to this is just starting a session, setting a session variable and then reading it/comparing values.
Trivial problem with trivial solution. You just need session_start(); and $_SESSION['game'] = $game;