I am using Yii2, I want to user logout automatically and redirect to login page, after fixed idle seconds.
I already tried
'components' => [
'user' => [
'identityClass' => 'app\models\User',
'enableAutoLogin' => true,
'authTimeout' => 60,
]
],
What should I do ?