When I put site in maintenance mode and after turn site back all users sessions are not active (is need to log in account), but I put session to work 2 month and it work.
How to prevent users logout when put site in maintenance?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityWhen I put site in maintenance mode and after turn site back all users sessions are not active (is need to log in account), but I put session to work 2 month and it work.
How to prevent users logout when put site in maintenance?
This is intended behavior, if user does not have "access site in maintenance mode" permission, then user is logged out.
For Drupal 7 take look on user_menu_site_status_alter
For Drupal 8 take look on Drupal\user\EventSubscriber\MaintenanceModeSubscriber