I solved the problem. In User’s login controller (protected/modules/user/controllers/LoginController.php) the actionLogin method (after a successfull validation) checks if Yii::app()->user->returnUrl contains the ‘/index.php’ string:
if (strpos(Yii::app()->user->returnUrl,'/index.php')!==false)
$this->redirect(Yii::app()->controller->module->returnUrl);
else
$this->redirect(Yii::app()->user->returnUrl);
If true, it redirects to the page given in the config file, not to the calling page, and I don’t understand why? Has it any important meaning that the returnUrl contains the ‘/index.php’ string?
So I simply commented out this code snippet, and added to redirect to returnUrl. Is it a good solution?
When i tried to use customized sessions with Yii-user, it wasn’t possible to log in or registrate anymore. The solution to this was that the sessionname had to be “Session”. At first i used Game Session and Game_Session. After i changed it to “Session” it worked fine together.