In this wiki I will show how could logout from all other sessions or all other places.
In this wiki I will show how could logout from all other sessions or all other places.
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.
By default, the expression Yii::app()->user returns a [CWebUser] [application component](http://www.yiiframework.com/doc/guide/basics.application#application-component) which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, [CWebUser] already comes with a [name|CWebUser::name] property th...