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