prevent multiple login with same login credentials in php
Posted
by shinod
on Stack Overflow
See other posts from Stack Overflow
or by shinod
Published on 2010-06-02T15:01:24Z
Indexed on
2010/06/02
15:04 UTC
Read the original article
Hit count: 355
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_will be 1 undefinitely and no one can use that login credentials again.
Is there any idea to accomplish my task?
© Stack Overflow or respective owner