Logout on browser close - Members Extension
This is an open discussion with 3 replies, filed under Extensions.
Search
As far as I know this is not possible, owing to the way Symphony handles sessions and cookies.
Is there anyway round this issue. Josh
I have forked the Members extension and added a couple of tweaks which create a "Temp Cookie" when the user logs in and then checks for it again inside the isLoggedIn function and if it can't find it logs out.
https://github.com/jmoont/members
I'd be grateful if someone could confirm my logic but it seems to be a nice solution. I hope this helps someone else.
Create an account or sign in to comment.
How can I setup the Members extension to logout as soon as the browser is closed? If it was using a cookie I could set the expire to zero which "If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes)." but it looks like its using session. Please help! Thanks, Josh