CodeIgniter Forums
How does myth-auth rememeber me work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: How does myth-auth rememeber me work (/showthread.php?tid=77704)



How does myth-auth rememeber me work - Ceo - 10-07-2020

So, I am a bit confused. I used to know remember me feature to work this way : 

when the user logs in,if he turns on remember me, when he closes the browser, he will not be logged out.But if he turns it off, he will be logged out when he closes the browser

Thats the way, I think myth-auth remember feature works in myth-auth except, no matter what, if I turn off rememeber me from the view, when I close the browser, and re-open it,i am always logged in.I only get logged when my computer shuts down. Even when I set `$allowRemembering = false`, and `$rememberLength the same thing happens.

What is going on.How do I ensure the user gets logged out when they close the browser if they turn off remember me?


RE: How does myth-auth rememeber me work - InsiteFX - 10-07-2020

Make sure to destroy the session.


RE: How does myth-auth rememeber me work - Ceo - 10-07-2020

(10-07-2020, 01:49 PM)InsiteFX Wrote: Make sure to destroy the session.
Where?


RE: How does myth-auth rememeber me work - InsiteFX - 10-08-2020

You should be able to just call logout which will destroy everything.

Another thing it could be your web browser caching it.