When a low-privilege non-administrator user logs into my web app successfully, I am storing the following data in the $_SESSION
array:
$_SESSION = array(
'user_id' => 2343, // whatever their user_id number is from the DB
'allow_admin' => false, // don't give them access to admin tools
'allow_edit' => false, // don't let them edit stuff
);
Is there any way that they could manipulate the $_SESSION
array to give them Admin or Edit access, apart from somehow editing the session files in /tmp
? (The above code is the only place where those items are added to $_SESSION
)