When user logs in with the 'remember me’option checked the _identity cookie gets set and I can confirm that it gets set properly and updated as the user interacts with the website.
However, even if the ‘Expires’ is set 1 day in the future, the user still gets logged out and has to relog in after about 20 minutes of inactivity.
I have these values set in config:
'user' => [
'identityClass' => 'app\models\User',
'enableAutoLogin' => true,
'autoRenewCookie' => true,
],
What am I missing?
This has been bugging me for a while so I finally decided to solve it, so any help appreciated.