This commit is contained in:
Eric Espie
2022-11-23 11:04:58 +01:00
parent c05684945f
commit 65b6c0f4ea
3 changed files with 11 additions and 14 deletions

View File

@@ -49,19 +49,6 @@ class Session
}
}
public static function FlushSession()
{
if (self::IsModeCLI()) {
return;
}
if (!is_null(self::$iSessionId)) {
self::$bIsInitialized = false;
self::$bSessionStarted = false;
self::Start();
}
}
public static function RegenerateId($bDeleteOldSession = false)
{
if (self::IsModeCLI()) {
@@ -69,6 +56,9 @@ class Session
}
session_regenerate_id($bDeleteOldSession);
if (self::$bSessionStarted) {
self::WriteClose();
}
self::$bSessionStarted = session_start();
self::$iSessionId = session_id();
}