Help troubleshooting sessions

Help troubleshooting sessions

David Borges -
Atsakymų skaičius: 4

Hi guys,

We have moodle version 4.5.1 installed in a debian server, we were previously using dbsessions, but we switched to file sessions  following the official documentation present in https://docs.moodle.org/405/en/Session_handling#Use_database_for_session_information and noticed that the sessions were being saved to both the sessions folder and the database sessions table.

Is this normal? What can we do to prevent the sessions from being saved  to the database?

Įvertinimų vidurkis: -
Atsakymas į David Borges

Re: Help troubleshooting sessions

Howard Miller -
Core developers paveikslėlis Documentation writers paveikslėlis Particularly helpful Moodlers paveikslėlis Peer reviewers paveikslėlis Plugin developers paveikslėlis
Are you sure that the sessions are being stored to the database? I think you'll find that they are not. Only the session identifier is stored in the table if you are not using db sessions. And that is normal.

I've said this a few times recently, but I would strongly recommend you consider moving to Redis for sessions.
Atsakymas į Howard Miller

Re: Help troubleshooting sessions

David Borges -
Dear @Howard MIller.
Thanks for the clarifications. We're considering using redis for sessions but needed to fix session timout issues. The confusion standed for the fact that in a new installation the sessions table is not created but in an existing one using db sessions and then switching to file sessions the sessions table kept being used.