Two login instance

Am a newbie

In my application i want to implement two login instances

1.Jobseeker

2.Recruiters

So far i have being able to do it but the Yii::app()->recuiter->isGuest and Yii::app()->jobseeker->isGuest

still refer to each other. This is my configuration.

‘components’=>array(

	'user'=>array(


		// enable cookie-based authentication


		//'allowAutoLogin'=>true,


                    'loginUrl'=>array('companydetails/accessdenied'),


                    'returnUrl'=>array('companydetails/comarea'),


                    'stateKeyPrefix'=>'_com'


	),


            'jobseeker'=>array(


		// enable cookie-based authentication


		//'allowAutoLogin'=>true,


                     'class'=>'CWebUser',


                    'loginUrl'=>array('jobseeker/j_logins'),


                    'stateKeyPrefix'=>'_js',


                   // 'returnUrl'=>array('jobseeker/jsarea'),


	),

Please help!!! :(

Uuuuuuuuh, you don’t want to do that. At least not this way. Please read the guide on role-based access controls.

I knw about that…All i want is two login instance coming from different table.