Session spoofing (PHP)

后端 未结 4 1157
不知归路
不知归路 2021-01-11 21:14

I am coding a website in PHP that contains the boolean $_SESSION[\'logged_in\']. This is set to true when a username and password match are present

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-11 21:59

    It is not possible for anyone but your code to manipulate values in a session. For someone to bypass that, he'd have to have permission to run code on the server or exploit a security hole in your code or the server (either way a security exploit). If a user is able to do that, he probably doesn't need to bother with fiddling with session values, since he can do virtually anything else on the server directly as well.

提交回复
热议问题