Answer the question
In order to leave comments, you need to log in
How reliable are sessions in php?
Hello!
I have been working on php for a long time and always store important data of logged in users in sessions
. Including when a user logs in, I set $_SESSION['online']=true
And when performing important operations, I check that online is equal to true
And I thought, is it safe? Can't the user somehow easily influence the contents of the session?
Indeed, unlike cookies, session data resides on the server, right?
If the sessions are not secure, please suggest options for a secure solution
Answer the question
In order to leave comments, you need to log in
The application code and the developer's brain are responsible for the reliability of sessions.
PHP has long taken care of the security of sessions when working with them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question