Only check the session save path is writable if the session handler is 'files'
fixes #8053 Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
This commit is contained in:
parent
7f5ba135ee
commit
5e40ce2088
|
@ -78,8 +78,9 @@ class PhpSession extends Session
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_writable(session_save_path())) {
|
$sessionSavePath = session_save_path();
|
||||||
throw new ConfigurationError('Can\'t save session');
|
if (session_module_name() === 'files' && !is_writable($sessionSavePath)) {
|
||||||
|
throw new ConfigurationError("Can't save session, path '$sessionSavePath' is not writable.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->exists()) {
|
if ($this->exists()) {
|
||||||
|
|
Loading…
Reference in New Issue