How do you access user's identity in afterLogin()

You know that CWebUser has a afterLogin($fromCookie) method.

How do I access states from the user that was just logged in?

public function afterLogin($fromCookie) {



        echo Yii::app()->user->email; // this raises Property "" is not defined.	


[color=#1C2837][size=2]You shouldn’t try to get something from session with Yii::app()->user->something, but with $this->something, because $this is the same as Yii::app()->user, but isn’t yet stored in session. [/size][/color]