[SESSION] Implement SessionHandlerInterface instead of setting custom handlers by XRevan86

This commit is contained in:
Diogo Cordeiro
2019-05-14 22:57:45 +01:00
parent e8783d46d0
commit c083a8bcc2
3 changed files with 224 additions and 229 deletions

View File

@@ -283,7 +283,7 @@ function common_ensure_session()
}
if (!common_have_session()) {
if (common_config('sessions', 'handle')) {
Session::setSaveHandler();
session_set_save_handler(new InternalSessionHandler(), true);
}
if (array_key_exists(session_name(), $_GET)) {
$id = $_GET[session_name()];