1

For our Drupal 6 site, we've experienced such issue that logged-in users are getting logged out for around one week or several days.

Firstly I thought this might happen with Boost module, but it seems this issue happens as our test site that runs without boost enabled. We have already set cookie time long as following in settings.php

ini_set('session.cookie_lifetime',  2147483647);
ini_set('session.gc_maxlifetime',   200000);

This site is pretty big and includes a lot of custom modules/code, which make it difficult to debug what's going on. I greb the code, and no luck to find session_destroy code, or user logout code. Maybe I need to set session.gc_maxlifetime as large as session.cookie_lifetime?

Is there some way to debug this issue when users are logged out?

1 Answer 1

0

This issue is solved by updating this setting

ini_set('session.cookie_lifetime', 21474836); The original value '2147483647' is too big for some reason.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.