title: Yii2 autologin with cookie
body: <p>I've set up cookie based login just like the guy <a href="https://stackoverflow.com/questions/30556419/yii2-autologin-dont-work">in this thread</a>. I can see that auth key is always generated correctly. I can see it in the DB and in cookie also. Cookie also has the proper expiration date. Nevertheless, I never get signed in automatically. I have set <code>'enableAutoLogin' =&gt; true</code> and all the other methods are as default. So it should work. I read somewhere that calling <code>Yii::$app-&gt;user-&gt;identity</code> should trigger cookie login, but it doesn't. Any advice?</p>