I'm having a lot of problems with user sessions just - quite simply - not being remembered. I started with Persistent Login. I moved to Remember Me. No improvement. I noticed and removed the reduction on Drupal's session_cookie_lifetime that PL had set to zero from default. No improvement. I noticed that PHP.ini had got session.cookie_lifetime set to zero. Commented out. No improvement.

Any suggestions for where to go from here?

It appears to recall sessions for about an hour or so, but no longer. The browser doesn't even have to be closed for the session to be lost.

CommentFileSizeAuthor
#8 remember_me_settings.png68.4 KBnickl
#8 phpinfo.png85.11 KBnickl

Comments

AdrianC-1’s picture

Cancel the PHP.ini bit - that broke far more than it fixed, so that entry's back in.

AdrianC-1’s picture

Well, it doesn't appear to be either Persistent Login or Remember Me at fault. Both have been uninstalled, and I'm still seeing the same problems.

If anybody can come up with any suggestions... http://drupal.org/node/1092186

ob3ron’s picture

I have the same issue. I had set the session_cookie_lifetime to 0, now have set it back to the original ~23 days, but Remember Me doesn't.

ob3ron’s picture

Priority: Normal » Critical

Setting this to critical since the module does not work, at least for some people.

theullrich’s picture

sub

Davidis’s picture

Sub

nickl’s picture

Will investigate...

nickl’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new85.11 KB
new68.4 KB

Remember me only modifies the default drupal session lifetime management and will not/cannot magically fix any problems with sessions you might otherwise have. If you have problems with sessions without this module you will have the same problems with this module enabled.

Cannot reproduce.
Attached is my Remember me settings page, note the Manage session lifetime is checked and Lifetime is set to 3 hours. Note the status values current user chose to be remembered and session lifetime is 3 hours.

Suggestions:
Install devel module and check phpinfo devel/phpinfo
Attached is what my configuration looks like for sessions, maybe you might spot a difference in yours.
Note the columns Master Value (as configured in php.ini) and Local Value (runtime configuration as changed by drupal et al)
My php.ini session.cookie_lifetime is set to 0 (Master Value)
My settings.php is unchanged the session.cookie_lifetime is set to 2000000

ini_set('session.cookie_lifetime',  2000000);

The Local Value for session.cookie_lifetime is correctly reported by phpinfo as 10800 or 3hrs as modified by Remember me.

Check the following:
Is session support enabled?
Are we using cookies for sessions?
Are we using only cookies?
Verify that your browser is configured to use cookies?
Check the sessions table in the database are there any entries?

Feel free to ask questions but please submit your phpinfo screen capture for the sessions section with your request.

nickl’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response for 6 weeks, closing.

Feel free to reopen the issue if more information becomes available.

nagiek’s picture

I had a similar problem, found that the error was PHP specific, not module specific.

  1. Install the devel module.
  2. Go to devel/phpinfo.
  3. Compare the session values against your own local set up.

I had found that session.save_path wasn't set, which caused my problems. You can fix it by adding code to your settings.php file.

  ini_set('session.save_path', '/tmp');
nickl’s picture

@nagiek thank you for sharing. What you've discovered is so true, if there is anything wrong with PHP sessions in general remember_me will be one of the first modules to suffer and appear to be faulty. We should keep this in mind and first check if sessions actually work at all.