title: Yii2 basic template to make separate session for frontend & backend
body: <p>I am using the Yii2 basic template to create an admin panel.
  For the admin login I have used the <code>useridentity</code> class and the default user model of yii.</p>
  
  <p>Now I have to create the login for the frontend. What should I do to make the separate login so that I can login in the same browser in frontend and backend?</p>
  
  <p>In basic template I'm facing problem with same identity class and model.</p>
  
  <p>I have to use the same user table of database for admin and frontend user.</p>
  
  <p>Please suggest the best way to manage this.</p>