L
L
lightalex2015-04-04 14:04:05
PHP
lightalex, 2015-04-04 14:04:05

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

1 answer(s)
X
xmoonlight, 2015-04-04
@lightalex

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 question

Ask a Question

731 491 924 answers to any question