Wiki

Articles tagged with "cwebuser", sorted by viewsX
Displaying 1-5 of 5 result(s).

How to add more information to Yii::app()->user

Created 5 years ago by qiangTutorials2 comments – viewed 122,808 times – ( +28 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser 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 property that stores the username of the current user.

How to create Module based Login

Created 10 months ago by turiHow-tos1 comment – viewed 8,259 times – ( +3 ) – version 1.1
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

HOW TO: Use token based authentication

Created 10 months ago by le_topHow-tos0 comments – viewed 7,405 times – ( +4 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

How to get & store Last Login DateTime in database?

Created 3 months ago by Rohit SutharHow-tos2 comments – viewed 2,978 times – ( +7 ) – version 1.1
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).

Google style sign out of all other sessions

Created 3 months ago by Rohit SutharHow-tos2 comments – viewed 2,745 times – ( +4 ) – version 1.1
In this wiki I will show how could logout from all other sessions or all other places.