Search

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

As far as I know this is not possible, owing to the way Symphony handles sessions and cookies.

Issue #172: Session timeout

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details