I was trying to create my own secure PHP session class when I was wondering what was stopping someone from emulating a session?
IE, why not make code on test.php
$_SESSION['logged_in'] = true;
Unable to work with index.php where
if($_SESSION['logged_in'] == True){ echo 'logged in'; }
I understand that the way to this is to secure the session by creating a secure identifier by blocking it with the IP address and User Agent, but how exactly does it work?
Value, if I could guess the session identifier, can I set $ _SESSION ['logged_in'] = true and emulate the login? Should I change the SESSION variable to check for a safer entry?
Sorry for my questions and hope I get some meaning ...
source share