Cwebuser

Hi,

"CWebUser represents the persistent state for a Web application user."

can any one tell me if the above mentioned web application user is only being refereed to the logged in user or any anonymous user without loged in.

I guess with anonymous user you refer to guest user profile. The guest profile stands for any user which haven’t been authenticated yet.

cbi

CWebUser runs for both authenticated users and non-authenticated visitors. I hope that clarifies what you’re wondering.

yes it is helpful to me.but can you please tell me why Yii::app()->user->setFlash(‘success’,‘Save data successfully’);

this line of code is not working for me.I did not have any loggin mechanism.