I am a beginner, and I have a question, I want to create a PHP script so that security is 50%. I just want to create a login system based on php sessions.
Since I read during the training process on the Internet, we can store the user ID or username in the session, for example:
$_SESSION['username'] = $user_name;
So is it safe to do this?
Can anyone else create a fake session and access the admin area?
If possible, what is the solution? Can we store a hash password in a session ?!
source
share