Description
Hi,
I reset my dev environment and I started from scratch using this repo, as before.
I build a Moodle 3.11 fresh install, building the set of containers, installing via CLI the database as suggested. All ok right now.
I log in as admin/test. Ok. I can click everywhere on the empty Moodle.
However, when I click on the Administration menu, it logs me out. And I cannot reenter into Moodle. No way.
I tried it for 3 times to start from scratch, and every time I got the same behaviour.
I can see that every failed attempt to log in, it creates a new session file, with the time stamp internal to the container apache webserver.
The loop for any admin login trial is:
- "POST /login/index.php HTTP/1.1" 303 2141 "http://localhost/login/index.php"
- "GET /login/index.php?testsession=2 HTTP/1.1" 303 1955 "http://localhost/login/index.php"
- admin is user.id = 2. so ok.
- "GET /admin/search.php HTTP/1.1" 303 2025 "http://localhost/login/index.php"
- enters into the admin_externalpage_setup()
- then into the require_login()
- finally in the lib/moodlelib.php::reguire_login() it detects that the user is not logged in. $USER->id = 0.
- "GET /login/index.php HTTP/1.1" 303 1954 "http://localhost/login/index.php"
- "GET /login/index.php HTTP/1.1" 200 8077 "http://localhost/login/index.php"
- here the message is that my session was timed out.
Incredibly. I cannot understand why I am facing this recurrent problem.
Any ideas? Thanks a lot in advance.