Yii Framework Session Not Saved After Login
问题 We have the following function in /rpotected/components/UserIdentity.php: public function authenticate() { $username = $this->username; $password = $this->password; $user = Users::model()->find('username=? AND password=?', array($username, $password)); if($user === NULL){ $this->errorCode=self::ERROR_UNKNOWN_IDENTITY; }else{ $this->username = $user->username; sess('SESS_USER_INFO', $user->attributes); //print_r(sess('SESS_USER_INFO')); $this->errorCode=self::ERROR_NONE; } return !$this-