How to Prevent Concurrent User Logins in PHP/MySQL Site?

后端 未结 6 1632
北恋
北恋 2020-12-16 18:58

I am developing the user management portion of a website that will host a webcast. The goal is to prrevent the same user nam (email address) from being used concurrently.

6条回答
  •  天涯浪人
    2020-12-16 19:42

    It's easy to determine when someone logs in. It's much harder to determine when someone logs out. If you have a mechanism of killing the webcast streaming to a particular user quickly, you might want to have something which pops up asking the user if they want to kill their other session if you think there might be one active.

提交回复
热议问题