so let say i need to check session_id of an user for some reason, and at one point, so i do this:
Code: Select all
$cks = request_var($config['cookie_name'] . '_sid', 0, false, true);
In fact if i do this:
Code: Select all
if($cks != $user->data['session_id']){
echo 'not equal';
}
Can i assume that comparing in this way !=
all will return without any security issue? It's your opinion that values should maybe be "normalized" to be same type?
Anybody can indicate me where phpBB do the globals trick?