title: YII 2 get user identity after automatic logged out
body: <p>In Yii 2 I have to store user's login and logged out entry in one table. Still now when user is logged in and manually logged out that time I have store login and logout data(<code>datetime</code>) in table.</p>
  
  <p>But when any user logged out automatically when his session expired automatically that time I didn't get the user identity and that's why I am not getting the logged out data(<code>datetime</code>).</p>
  
  <p>My automatic session expired time is 1 hour.</p>
  
  <pre><code>'user' =&gt; [
      'identityClass'       =&gt; 'common\models\Users',
      'enableAutoLogin'     =&gt; true,
      'idParam'             =&gt; '_frontend',
      'identityCookie'      =&gt; ['name' =&gt; '_identity-frontend', 'httpOnly' =&gt; true],            
      'class'               =&gt; 'nill\forum\PhpBBWebUser',
      'authTimeout'         =&gt; 3600,
      //'absoluteAuthTimeout' =&gt; 3600,
  ],
  'session' =&gt; [
      // this is the name of the session cookie used for login on the frontend
      'name' =&gt; 'advanced-frontend',            
  ],
  </code></pre>
  
  <p>I want to get user identity after user logged out automatically or his session expired.</p>