阅读背景:

在php中使用相同的登录凭据阻止多次登录

来源:互联网 

My website has premium videos, for which users have to pay to watch it. I am sending a random user name and password to the user's email id when the payment is completed. Then I want to assure no more than one user use that login credentials simultaneously. For that I use a login_status column in database table with login credentials and change it to 1 when one user login and change to 0 when user log out. But the problem is, if the user close browser or network connection loss may happened will not update database. Then login_status will be 1 undefinitely and no one can use that login credentials again.My website has premium videos, for which users




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: