I’m using hybridauth to login with Google. That works ok, and I can also logout.
The problem is that when I click on login again, it doesn’t redirect me to Google so that I can log in using my google account, but it automatically logs me to yii using previously used account.
In my logout method I’m calling this
$haModule = Yii::app()->getModule('hybridauth');
$haModule->getHybridAuth()->logoutAllProviders();
Yii::app()->user->logout();
$this->redirect(Yii::app()->homeUrl);
I also tried destroying session:
Yii::app()->session->clear();
Yii::app()->session->destroy();
I’ve set allowAutoLogin to false in config
'components'=>array(
'user'=>array(
'allowAutoLogin'=>false,
),
...
What else can I do to get it work?