Hi Cristiano, According to the PHP manual, http://php.net/manual/en/function.session- id.php
"Depending on the session handler, not all characters are allowed within the session id. For example, the file session handler only allows characters in the range a-z A-Z 0-9 , (comma) and - (minus)!" So it sounds like we should allow more characters for the session paths. Looking at http://php.net/manual/en/session.configuration.php#ini.session.sid- length it seems that a few new options were introduced in PHP 7.1 Currently our session bits_per_character is set to handle the option '4' We will need to expand this so it handles option '5', and '6' as well Cheers Robert ** Changed in: mahara Milestone: None => 17.10.0 ** Changed in: mahara Status: Confirmed => In Progress ** Changed in: mahara Assignee: (unassigned) => Robert Lyon (robertl-9) -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1670637 Title: Sessions directories missing after upgrade to 16.10 and php 7.1 on Ubuntu 16.04 LTS Status in Mahara: In Progress Bug description: Hello, I updated my mahara installation to 16.10. At the same time I did an upgrade to from Ubuntu 14.04 to 16.04 and to php 7.1. Suddenly users where not able to login, I checked the error log and I found this: 2017/03/07 11:01:35 [error] 19414#19414: *100640 FastCGI sent in stderr: "PHP message: [WAR] 72 (auth/session.php:457) session_regenerate_id(): open(/data/maharadata/sessions/8/e/h/sess_8ehlbf3hbll0tjjiatl25d69i7, O_RDWR) failed: No such file or directory (2) I checked the session store structure and just directories between 0 and f where there. I had to create the whole structure with all subdirectories from 0 to z. I don't know if the session format comes form php 7.1 or from mahara, anyway the folder structure should be created accordingly to accomodate this format. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1670637/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

