Difference between #4 and #5 of
How to add more information to Yii::app()->user

Revision #5 has been created by Darwin Wen on Oct 19, 2011, 9:42:04 AM with the memo:

Add chinese version
« previous (#4) next (#6) »


Title unchanged

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

Category unchanged


Yii version unchanged

Tags unchanged

Content changed

> Note: When cookie-based authentication is enabled (by setting [CWebUser::allowAutoLogin] to be true), these persistent information will be stored in cookie. Therefore, you should NOT store sensitive information (e.g. password) like we do in the above.

**Related article**
The method explained above stores the user data into session or cookies when the user authenticates, there is another method of retrieveing user information from database directly:
[Add information to Yii::app()->user by extending CWebUser](http://www.yiiframework.com/doc/cookbook/60/)

- [Chinese version](http://www.itkuaixun.com/bbs/thread-63-1-2.html "Chinese version")
21 0
Viewed: 185 046 times
Version: 1.1
Category: Tutorials
Written by: qiang
Last updated by: Yang He
Created on: Feb 9, 2009
Last updated: 5 years ago
Update Article


View all history