I am trying to log out user automatically in yii2 after he is idle for a fixed seconds . In web.php I added
yii2
web.php
\'user\' => [
Just remove "enableAutoLogin" from your user config and it will just work fine.
Your code shall look like this:
'user' => [ 'identityClass' => 'app\models\User', 'authTimeout'=>100 ],