Yii Unique Authentication, Deny Duplicates

search easy way to deny duplicate session for user. For example after login in website from my computer i should not be able to login from smartphone. Thanks!

I remember that in yii have such an opportunity, without database change or more code writing but I can not find it.

it is a simple matter. create a separate column in your user table and update that column like login = 1 or login = true or something in the database column after login and check for this column whether to allow or deny the user.