Hey,
I have a global login page, this page check my login id and then redirect to my yii site. I don’t need to login again using yii login page
here is my global login variable
$abc[5]
My question is, how to check my global login variable with my User database and redirect to my home page without second time login.
in the SiteController.php, I have this configuration
public function actionLogin()
{
$form=new LoginForm;
// collect user input data
if(isset($_POST['LoginForm']))
{
$form->attributes=$_POST['LoginForm'];
// validate user input and redirect to previous page if valid
if($form->validate())
$this->redirect(Yii::app()->user->returnUrl);
}
// display the login form
$this->layout='initial';
$this->render('login', array('form'=>$form));
}