Can a user alter the value of $_SESSION in PHP?

后端 未结 4 1917
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 07:31

this is crossing my mind and I\'m wondering if it is possible, how secure can it be to store info in the $_SESSION variable of PHP?

4条回答
  •  -上瘾入骨i
    2020-12-01 08:01

    The $_SESSION is stored entirely on the server, so the user cannot modify it. However, it is possible for session-hijacking exploits where the user gets connected to another user's session.

提交回复
热议问题