Allow one session only at a time

后端 未结 6 1317
予麋鹿
予麋鹿 2020-11-28 13:23

I would like to make my website to allow only one session at a time. For example, let say user has login to my website on firefox, if the user login again to another browser

6条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 13:42

    Save users' IP=>SESSION_ID pairs in a database. When user try to load your page you must compare the actual IP=>SESSION_ID pair then allow/deny if the pair is ok/different.

提交回复
热议问题