...
public function actions()
{
return array(
// captcha action renders the CAPTCHA image displayed on the contact page
'captcha'=>array(
'class'=>'CCaptchaAction',
'backColor'=>0xFFFFFF,
),
// page action renders "static" pages stored under 'protected/views/site/pages'
// They can be accessed via: index.php?r=site/page&view=FileName
'page'=>array(
'class'=>'CViewAction',
),
'login' => array(
'class' => 'ext.yii-simplesamlphp.actions.LoginAction',
'simplesamlphpComponentName' => 'simplesamlphp',
'redirectAfterLoginTo' => array('/index.php/pegawai'),
),
'logout' => array(
'class' => 'ext.yii-simplesamlphp.actions.LogoutAction',
'simplesamlphpComponentName' => 'simplesamlphp',
'redirectAfterLogoutTo' => array('/logoutex.php'),
),
);
}
/**
* This is the default 'index' action that is invoked
* when an action is not explicitly requested by users.
*/
public function actionIndex()
{
if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')){
$this->render('logi') ;}
else {
if (Yii::app()->user->isGuest) {
Yii::app()->simplesamlphp->login();
} else {
$this->redirect(Yii::app()->request->baseUrl.'/index.php/pegawai');
}
}
}
I think there is problem with your simplesamlphp's session storage, and i thik it is very similar like #1. Do you change your simplesamlphp's session storage? Can you try use database for your session storage?
hi asasmoyo, i tried to use simplesaml in my yii aplication..
i already follow your instruction.. but i found this error..
this is my main.php in config..
and this is my sitecontroller.php..
can you help me please..