Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Yii User Session

$
0
0
Hi,

I have a problem with user login in Yii. In our site there are 2 types of users: Admin & User. We have created separate sessions for both of them in config. The problem is that when one of them logs out, the other one also logs out.

The below functions are used for logging out:

Yii::app()->frontUser->logout(); - for user

Yii::app()->User->logout(); - for admin

But in the same browser, if one user is logged out the other one is also logged out. Is there any way to prevent this?

Thanks

Viewing all articles
Browse latest Browse all 18717

Trending Articles