Commit 8e8132fb authored by Melissa Draper's avatar Melissa Draper
Browse files

Remove temporary session folder code (bug #817940)

This patch removes the 'temporary' code that was checking for the
existance of the session directories at each session creation. This
check is performed at install and at update, however if the session
directory goes away somehow between updates, there is currently
_no_ way to restore it without one of these two options. This may
need to be considered before merging in this change.

Change-Id: Ia6020c0b73ce9e172e718c9638a312b1f0162295
Signed-off-by: default avatarMelissa Draper <>
parent 7f2b345b
......@@ -41,26 +41,6 @@ ini_set('session.cookie_httponly', 1);
ini_set('session.hash_bits_per_character', 4);
ini_set('session.hash_function', 0);
// TEMPORARY: this will be REMOVED after the session path changing
// has been around for a bit.
// Attempt to create session directories
$sessionpath = get_config('dataroot') . 'sessions';
if (!is_dir("$sessionpath/0")) {
// Create three levels of directories, named 0-9, a-f
$characters = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
foreach ($characters as $c1) {
foreach ($characters as $c2) {
foreach ($characters as $c3) {
* The session class handles session data and messages.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment