Yii::app()->user->id; is returning username instead of id number

I have a very strange problem in that on one machine Yii::app()->user->id; returns the username, but on another machine running identical code I'm getting the id number as expected. How could Yii::app()->user->id be getting the username? What have I missed?

5
задан JochenJung 27 May 2011 в 11:49
поделиться