Session Timeout:: Cannot Relogin

Hi guys.

Strange things happening.

config:


'enableAutoLogin' => true

login form:


Yii::$app->user->login($user, 3600*24*30);

Identity cookie is set and expire date is 30 days from now.

Still after session timeout user gets logged out.

What am I missing?

Nevermind, seems like i’ve found the problem.

For those who will also face this: dont forget to set auth_key on user registration.

Yeah thats what I would have guessed :slight_smile: