Recognize active backend login

Hi,

I set diffrent identityCookie name and session name for frontend section and backend section.

My question is how to recognize active backend login in frontend section? I have two separately login form each for my sections.

I used abhi1693/yii2-user from github and advnaced yii2 template.

Thanks.

In order to have one login for both you should not separate identity cookie and session name.