title: Two totally different frontend users ￼in Yii2 advanced
body: <p>I'm developing an application using the advanced Yii2 template.</p>
  
  <p>I already have two different sessions separated for backend and frontend users. 
  My main.php files are like this:</p>
  
  <pre><code>// frontend/config/main.php
  ...
  'user' =&gt; [
      'identityClass'   =&gt; 'common\models\User',
      'enableAutoLogin' =&gt; true,
  ],
  ...
  
  // backend/config/main.php
  ...
  'user' =&gt; [
      'identityClass'   =&gt; 'backend\models\BEUser',
      'enableAutoLogin' =&gt; true,
  ],
  ...
  </code></pre>
  
  <p>I am facing problems when I try to implement a <strong>second separate frontend user</strong>. Right now, when I login for the different user model, I'm logged in as a regular frontend user as well. </p>
  
  <p>I don't want to use RBAC, because I want the two different kinds of users <strong>fully separate</strong>. Which means, different database tables, different session names, different login pages, and access to totally different parts and pages of the website.</p>
  
  <p>I think of adding a separate "user2" entry in frontend/config/main.php, but I cannot find any similar guide on the internet. So I assume this is something not possible.</p>
  
  <p>Do you have any suggestions for that? 
  Thank you. </p>