How does login remember Me feature work?

The “remember me” on my login page does not seem to work, and I’m trying to find out why:

I can login users and after login I can see a cookie set with _identity and some random string, which expires in a month. However, in the database the auth_key field is always NULL. I’m assuming this should be the same as the string in the cookie? Which line of code is responsible for writing this to the db? I looked through the tutorials and could not find anything that writes it to the db.

Thanks.

is autologin set to true in your config?

Yes, it’s on, here is my config:




'user' => [

            'identityClass' => 'app\models\User',

            'enableAutoLogin' => true,

        ],