Wiki

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

Google style sign out of all other sessions

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

How to get & store Last Login DateTime in database?

Updated 10 months ago by Rohit SutharHow-tos2 comments – viewed 5,595 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).

HOW TO: Use token based authentication

Updated about a year ago by CeBeHow-tos2 comments – viewed 11,365 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 create Module based Login

Updated about a year ago by CeBeHow-tos1 comment – viewed 10,408 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 add more information to Yii::app()->user

Updated 3 years ago by Yang HeTutorials2 comments – viewed 139,224 times – ( +30 ) – 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.