Reading through the description and readme doesn't give me a good amount of info of the functionality of the module.

My use case is that I browser sessions to remain only active in the browser, and not stored in a cookie (drupals default behavior). To do this, I've set the session lifetime to be 0 in settings.php.

Doing this requires users to log in everytime they visit the site. I thought this 'remember me' checkbox would set a cookie for those users for some period of time.

This doesn't seem to be the case. What am I missing here? THanks

Comments

v8powerage’s picture

From what I understood reading thru the code:

// If we have a user logged in, then we have a session.
  if ($user->uid) {
    if ($user->remember_me && variable_get('remember_me_managed', 0) != 0) {
      // Set lifetime as configured via admin settings.
      if (variable_get('remember_me_lifetime', 604800) != ini_get('session.cookie_lifetime')) {
        _remember_me_set_lifetime(variable_get('remember_me_lifetime', 604800));
      }
    }

is that if user won't check "remember me" it overwrites drupal's default 3 weeks with 7 days (604800s) - module maintainter, am I wrong?

nickl’s picture

Status: Active » Fixed

The first task of this module is to allow users to your site to choose that their sessions expire, not default drupal behavior. If the remember me checkbox is not checked on log in and then the browser is closed the session cookie gets discarded and on returning to the site the user will be required to log in again.

The module can also manage the session lifetime period for when the checkbox is checked on log in by overwriting the default drupal setting. Only when the setting "Manage session lifetime" is enabled, at admin/settings/remember_me, will the standard drupal session.cookie_lifetime as configurable in settings.php be overwritten with the configured timespan which defaults to 1 week.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.