how to log out user automatically in yii2 after user is idle for a fixed seconds
<p>I am using Yii2, I want to user logout automatically and redirect to login page, after fixed idle seconds. </p>

<p>I already tried </p>

<pre><code> 'components' =&gt; [
    'user' =&gt; [
            'identityClass' =&gt; 'app\models\User',
            'enableAutoLogin' =&gt; true,
             'authTimeout' =&gt; 60,
        ]
    ],
</code></pre>

<p>What should I do ?</p>