Lets say my login.php uses session to store the variables.
I set my session in such way:
$userID is retrieved from the database.
$SESSION['userid'] = $userId;
example user id of 1 logged in will look like this $SESSION['userid']= 1;
will this cause any security problems?(lets not talk about the deep part, does it even secured enough from basic hacking?)
Is there any relation to the session cookie or Id(which can be hijacked based on other websites say)?
Can anyone please kind explain to me? Simply and easy one please ty