How about to add "Remember me"
How about to add "rember me" when I longin?
Updated by Yannick Warnier almost 9 years ago
- Subject changed from How about to add "rember me" to How about to add "Remember me"
- Status changed from New to Assigned
- Priority changed from Normal to Low
- Target version changed from 1.8.7 to 188.8.131.52
So that would change your setting to not close the session when you close your browser? Why not, indeed... I'm saving this one for later.
Updated by Yannick Warnier over 6 years ago
Julio A. Montoya wrote:
This will require a DB change in order to allow that behaviour
I don't think so. It should just be changing the time the cookie stays valid when starting a session.
That would be in the main/inc/lib/chamilo_session.class.php::session_lifetime() function.
When checking the box, add a month or so to the cookie, hacking the end_time() function to check on $_SESSION['extended_session'] or something like that (which you have to set after calling session_start()). At least I guess it should be enough. Given the fact that this library was rewritten (and this is definitely a good thing), it should be possible to "really" change the session lifetime by setting $_configuration['session_lifetime'] to a very short time (like 2 minutes) and check if that works when adding a month (86400*31) to the session expiry.
Updated by Julio Montoya over 5 years ago
Yannick Warnier wrote:
This last comment is not very clear for somebody external. What you mean is "this was implemented in Chamilo 1.10 thanks to the integration of Silex", right?
No, what I meant is that this feature (remember me) was implemented in the Silex project as a service called RememberMeServiceProvider that plays with the SecurityServiceProvider (that we use in 1.10). The configuration of this service:
in Chamilo 1.10 is missing.