Skip to content

Commit

Permalink
fix(session): Explicitly closing the session in the shutdown hook to …
Browse files Browse the repository at this point in the history
…work around APC session problems.

Fixes #7186.
  • Loading branch information
brettp committed Nov 18, 2014
1 parent c6fa214 commit 7dbe7c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/lib/elgglib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,9 @@ function _elgg_shutdown_hook() {
error_log($message);
error_log("Exception trace stack: {$e->getTraceAsString()}");
}

// Prevent an APC session bug: https://bugs.php.net/bug.php?id=60657
session_write_close();
}

/**
Expand Down

0 comments on commit 7dbe7c6

Please sign in to comment.