thekabal / tki

The Kabal Invasion - A web based space exploration (4x) game
Other
11 stars 7 forks source link

Session security improvement - user agent #46

Open thekabal opened 8 years ago

thekabal commented 8 years ago

From https://stackoverflow.com/questions/5081025/php-session-fixation-hijacking#5081453 :

"Include the user agent from $_SERVER['HTTP_USER_AGENT'] in the session. Basically, when the session starts, store it in something like $_SESSION['user_agent']. Then, on each subsequent request check that it matches."

Non-trivial, but useful. Lets try to get this added.