Yii::app()->session->get(‘key’); for yous purpose Yii::app()->session->get(‘id’) for getting session id, Do not use Yii::app()->user-> for this cause it was not meant for habdling session.
also U can set session by using Yii::app()->session->add($key, $value);
I Completed My site I used My Site full Getting User id like this Yii::app()->user,I am Using Social login Using HYbridauth php in that i create that Session in php.I am trying to integrate hybridauth in yii but i cant do because in my site already having Usercontroller its both are confilct in my site…