title: Yii2 - How to set dynamic authTimeout in User Identity?
body: <p>Here, I have extended <code>User</code> Identity of Yii2.</p>
  
  <p>This is my configuration.</p>
  
  <pre><code>'user' =&gt; [
              'identityClass' =&gt; app\models\UserMaster::class,
              'enableAutoLogin' =&gt; false,
              'loginUrl' =&gt; ['/auth/login'],
              'authTimeout' =&gt; 86400
          ],
  </code></pre>
  
  <p>Here, I have defined <code>authTimout</code> statically. But, What I want to do is that I want to fetch timeout value from database and set it in <code>authTimeout</code>.</p>
  
  <p>Thanks.</p>