How to place user id in a session? just paste id? I mean (for example):
$_SESSION['id'] = 1;
Can't change it by the user (like cookie ..)? Because, if so, it can go to any identifier.
One more question - how can I check if a user is registered (with sessions)? I created a session:
$_SESSION['is_logged_in'] = true;
Again, can the user simply create a session whose name is "is_logged_in" and its value is true? or only the server has control over the value of the server?
Luis source share