hi,
is it safe, keep user data in session with Yii?
im extending CWebUser for login, register… how could i store other user data like status, address like Yii do for name and id without going to mysql query?
thanks
hi,
is it safe, keep user data in session with Yii?
im extending CWebUser for login, register… how could i store other user data like status, address like Yii do for name and id without going to mysql query?
thanks
To keep some additional info you can use setState() and to get that values getState()
there are even two good articles on the wiki about extending CWebUsers so that you can add more informations…
http://www.yiiframework.com/wiki/60/add-information-to-yii-app-user-by-extending-cwebuser
exactly what i need, thanks