php - yii cwebuser two seperate login in admin and frontend session issue -
i have 2 different types of users including admin users manage site , customers. have using cwebuser , define in config.php file.
<?php 'user'=>array( 'class' => 'cwebuser', // enable cookie-based authentication 'loginurl'=>array('admin/'), //'allowautologin'=>true, 'statekeyprefix' => 'admin_', ), 'customer' => array( 'class' => 'cwebuser', 'loginurl' => '/site/', // enable cookie-based authentication //'allowautologin' => true, 'statekeyprefix' => 'frontend_', ) ?>
the problem if logged in admin panel , open front end, automatically fetch admin users details , display in front end. both logins(admin , front end) different. how rectify session problem.
i think usefull you
http://www.yiiframework.com/forum/index.php/topic/41410-change-login-url-for-cwebuser-multi-object/page__p__197433__hl__loginurl#entry197433
Comments
Post a Comment