Keep data on user session


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?


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…

exactly what i need, thanks :)