In PHP, why are my session variables persisted as references?

后端 未结 4 1786
醉话见心
醉话见心 2021-01-22 09:37

Here\'s the code. It\'s a simple operation to check that a session ID isn\'t being spoofed by verifying the IP address:

session_start();
$session_ip_address = $_         


        
4条回答
  •  死守一世寂寞
    2021-01-22 10:17

    One of my customers had a very similar problem.

    Make sure your PHP configuration (PHP.ini) has register_globals Off otherwise regular variables overwrite superglobals including PHP sessions.

提交回复
热议问题