How do you implement authorization so that only one user can log in?
Hello!
The problem is this...when the user is logged in to the site through another computer should not go to his account...
how can this be implemented?
2 answers
put the cookie to the user (once a minute, the cookie in the background updating), somewhere on the server remember that he logged on (type cook updated), if tries to login check is there a record of its authorization and all
From Yii user Dektrium for example there are auth_key, which is used for authorization. Now, under the new login and overwrite the key on a new one, this is equivalent to anlogin with other devices.
Find more questions by tags YiiPHP