Enhance session handling and introduce session flags

This commit is contained in:
netkas 2024-12-10 12:54:02 -05:00
parent 6c8cbfddec
commit 790262db08
6 changed files with 251 additions and 81 deletions

View file

@ -5,10 +5,8 @@
use DateMalformedStringException;
use DateTime;
use InvalidArgumentException;
use LogLib\Log;
use PDO;
use PDOException;
use Socialbox\Classes\Configuration;
use Socialbox\Classes\Cryptography;
use Socialbox\Classes\Database;
use Socialbox\Classes\Logger;
@ -106,7 +104,7 @@
if ($data === false)
{
throw new StandardException(sprintf("The requested session '%s' does not exist"), StandardError::SESSION_NOT_FOUND);
throw new StandardException(sprintf("The requested session '%s' does not exist", $uuid), StandardError::SESSION_NOT_FOUND);
}
// Convert the timestamp fields to DateTime objects