logs in even after browser was closed

I’ve just installed Yii2 basi app.

Trying to login with remember_me 0.

Closing browser, after opening it i am still logged in.

In logs i can see “User ‘101’ logged in from with duration 0.”

Maybe i have to add some config?

Thanks for help and sorry for my english.

Which browser? Safari and Chrome (with default settings) doesn’t delete cookies with lifetime = 0 on exit. They call it a “feature”. https://code.google.com/p/chromium/issues/detail?id=128513

Thanks for response.

Chrome and Firefox. IE deletes session even if i choose rememberMe.


Now IE works fine.

What do you want exactly?

When you close the browser the user should be logged out?