title: how to create multiple login access in yii2?
body: <p>I am creating a site in Yii2 and using basic version.
  I want have two login with two tables but suppose there is an Id for logged in user is 1 and same id belongs from other table for admin user than Yii takes both identity and it show two logout button one for admin user and other for normal user but it should show only one logout and Yii should keep identity for that particular controller/login. Please help what can i do.</p>
  
  <pre><code>// login admin module
  'user' =&gt; [
                  'class' =&gt; 'yii\web\User',
                  'identityClass' =&gt; 'app\models\User',
                  'enableAutoLogin' =&gt; true,
  
          ],
  // login site   
      'marketer' =&gt; [
          'class' =&gt; 'yii\web\User',
          'identityClass' =&gt; 'app\models\Marketer',
          'enableAutoLogin' =&gt; true,
          'loginUrl' =&gt; 'test/index',
          'identityCookie' =&gt; [
              'name' =&gt; '_marketer', 
              'httpOnly' =&gt; true,
          ]
      ],
  </code></pre>