[color="#000080"]I have the following in the behaviors() function in my SiteController.php:[/color]
return [ 'access' => [ 'class' => AccessControl::className(), 'only' => ['login', 'logout', 'room-details', 'dashboard'], 'rules' => [ [ 'actions' => ['signup', 'login'], 'allow' => true, 'roles' => ['?'], ], [ 'actions' => ['logout', 'room-details', 'dashboard'], 'allow' => true, 'roles' => ['@'], ], ], ], 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'logout' => ['post'], ], ], ];
Firefox is giving the following error: The page isn’t redirecting properly.
Chrome gives: beta.project.com redirected you too many times.
[size=“2”]I’ve cleared cookies and tested from other computers with no luck.[/size]
[size=“2”]I’ve removed the ‘login’ action from ‘only’ and from ‘rules’ and the same error appears.[/size]
All this happened after I added these actions: actionRoomDetails and actionDashboard.
I’m still logged in with one browser and it works fine. The problem is when I go to the login or home page i.e. http://beta.project.com/
[size=“2”]After almost three hours looking into this, I’m lost. I really appreciate any help on this issue.[/size]
Using: Latest Yii2 v. 2.0.12 on PHP 7.0.19, Apache 220.127.116.11, Centos 7.3