Moodle cluster setup and sessions

Re: Moodle cluster setup and sessions

by Sven Laudel -
Number of replies: 1
Hello,

today I found out, when switching from one backend server to another the login token changes. So I suspect this to be the originating problem which causes users to be logged out after switching backend server. What can I do to overcome this behaviour other than disabling the use of login token as it is not recommended to do so?

Thank you for your patience and best regards
Sven
In reply to Sven Laudel

Re: Moodle cluster setup and sessions

by Sven Laudel -
So, to end this thread I'll found the solution.
We use our standard ansible scripts to setup our servers, so did we for Moodle. Our php-fpm role contains some php configuration values. There the "session.save_handler" has been set as "php_admin_value", which could not be overwritten by an application. So changing it to a "php_value" allows applications to overwrite the value.
I found this, as I was setting up another php LMS, which did not let me login after setup, because it could not handle the session correctly.
But now the problem is solved.