In your config/web.php
file:
In $config
array:
...
'user' => [
'identityClass' => 'app\models\User',
//'enableAutoLogin' => true,
'enableSession' => true,
'authTimeout' => 60,
],
...
Please note I commented the //enableAutoLogin
, that prevents of authTimeout
to work properly