I'm using Revo 2.2.15 and the Login snippet with a checkbox 'rememberme'. I would like the following to happen:
A) user logs in and selects the rememberme checkbox: I want the user to stay logged in for as long as the session_cookie_lifetime is set (this is 7 days for me).
B) user logs in and deselects the rememberme checkbox: I want the user to be logged out whenever he closes the browser.
But it seems like the session_cookie_lifetime is always used, no matter if the checkbox is selected or not, and no matter if it's included in the login form or not. What am I doing wrong? My checkbox looks like this:
<input class="loginRememberme" type="checkbox" name="rememberme" id="rememberme" value="1" checked="checked" />
<label for="rememberme">Remember me </label>
EDIT: I gathered from this post:
https://forums.modx.com/index.php?topic=58251.0 that the session_cookie_lifetime setting would only be used if the remember me checkbox was checked:
Without the rememberme option, the default is when the current browser session is ended. Otherwise, it uses the lifetime provided to set the session cookie expiration time.