PHP Session Cookies fail with users changing IP

后端 未结 2 658
半阙折子戏
半阙折子戏 2020-12-21 04:07

I have a login script for a small application that works by storing session cookies and checking them on each page to make sure the user is logged in. One of the two users w

2条回答
  •  伪装坚强ぢ
    2020-12-21 04:38

    By default the PHP Session does not account for IP changes. It's only based in the cookie value.

    So perhaps maybe there is some customized code in your web app that invalidates the session when a user changes the IP address.

提交回复
热议问题