MDL-81480 core: Sets user-level session storage functions
Also added @runInSeparateProcess on each session Redis cluster test to let the test run in a separate process to avoid the error "the headers are not already sent" by PHPUnit.
This commit is contained in:
@@ -213,6 +213,11 @@ class redis extends handler implements SessionHandlerInterface {
|
||||
throw new exception('sessionhandlerproblem', 'error', '', null, 'redis extension version must be at least 2.0');
|
||||
}
|
||||
|
||||
$result = session_set_save_handler($this);
|
||||
if (!$result) {
|
||||
throw new exception('redissessionhandlerproblem', 'error');
|
||||
}
|
||||
|
||||
$encrypt = (bool) ($this->sslopts ?? false);
|
||||
// Set Redis server(s).
|
||||
$trimmedservers = [];
|
||||
|
||||
Reference in New Issue
Block a user