Add session_start() delay and all query time to debug data

This commit is contained in:
Kijin Sung 2020-10-30 15:52:52 +09:00
parent 7b2e10e40d
commit 3e18f2d6ba
2 changed files with 21 additions and 2 deletions

View file

@ -111,11 +111,13 @@ class Session
}
// Start the PHP native session.
$session_start_time = microtime(true);
if (!session_start())
{
trigger_error('Session cannot be started', \E_USER_WARNING);
return false;
}
Debug::addSessionStartTime(microtime(true) - $session_start_time);
// Mark the session as started.
self::$_started = true;