Welcome Guest, Not a member yet? Register   Sign In
How does myth-auth rememeber me work
#1

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?
Reply
#2

Make sure to destroy the session.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

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

(This post was last modified: 10-08-2020, 04:24 AM by InsiteFX.)

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

Another thing it could be your web browser caching it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB