这家伙有点懒,还没写个性签名!
$duration = '';//期限设置为空,默认关闭浏览器删除session_id Yii::app()->user->login($this->_identity,$duration);
这句话楼主应该知道在哪里吧