File based sessions in Moodle 2

File based sessions in Moodle 2

by Alastair Hole -
Number of replies: 7

We have used file based sessions historically for performance reasons. We are migrating to 2.2 at the moment and I would like to review this situation. I was concerned to read a code comment:

// legacy limited file based storage - some features and auth plugins will not work, sorry

Can anyone offer any information on which features and auth plugins will not work? Might we be forced to move to database sessions?

Sorry if this info is out there already but I haven't found anything yet.

Cheers,

Alastair

Average of ratings: -
In reply to Alastair Hole

Re: File based sessions in Moodle 2

by Alastair Hole -

Anyone?

Cheers

In reply to Alastair Hole

Re: File based sessions in Moodle 2

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I have no idea, but maybe you could ask Petr Skoda, the author of the code.

Saludos.
Iñaki.
In reply to Iñaki Arenaza

Re: File based sessions in Moodle 2

by Alastair Hole -

Thanks, do you know the best way to contact Petr?

Cheers

In reply to Alastair Hole

Re: File based sessions in Moodle 2

by Nitin Parmar -

Petr's profile can be found at https://moodle.org/user/view.php?id=12863&course=5

Moodle message?

In reply to Nitin Parmar

Re: File based sessions in Moodle 2

by Alastair Hole -

I had tried to add Petr as a contact, I'm not sure what else I need to do, apparently "Petr Škoda only accepts messages from their contacts."...

In reply to Alastair Hole

Re: File based sessions in Moodle 2

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Alastair,
here is what I suppose to be the hidden reasons: http://tracker.moodle.org/browse/MDL-14992?focusedCommentId=66566&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-66566.

Here you can find when the comment has been added: https://github.com/moodle/moodle/commit/0a2092a307ff6d72a58ace098d4d612d2c47810d#L2L11.

How did I find it?

$ git log --pretty=oneline -S'some features and auth plugins will not work'
0a2092a307ff6d72a58ace098d4d612d2c47810d MDL-14992 towards better db sessions

BTW, I'm using file-based sessions even in Moodle 2.x.

HTH,
Matteo

Average of ratings: Useful (2)
In reply to Matteo Scaramuccia

Re: File based sessions in Moodle 2

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi All,
just for the record, in http://tracker.moodle.org/browse/MDL-31501?focusedCommentId=157143&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-157143 (and following comments) there are more thoughts about legacy sessions: accounting, dropping, expiring, locking, SSO timing out, transactions.

Matteo

Average of ratings: Useful (1)