How to prevent Login from two places?

Comparing #1 with #2

Content

In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.
 
 
In your models (User class)



```php
/**
[...]