Add and use the 'Sessions' class.

This commit is contained in:
wn_
2024-07-11 12:14:53 +00:00
parent acf3748621
commit c7cc3c92ba
5 changed files with 149 additions and 144 deletions

View File

@@ -44,7 +44,7 @@
}
if (!empty($_SESSION["uid"])) {
if (!\Sessions\validate_session()) {
if (!Sessions::validate_session()) {
header("Content-Type: text/json");
print Errors::to_json(Errors::E_UNAUTHORIZED);