12 lines
186 B
PHP
12 lines
186 B
PHP
<?php
|
|
include_once("./controller/UserSession.php");
|
|
if(UserSession::isSessionValid()){
|
|
Database::invalidateSession(UserSession::getSession()->token);
|
|
session_destroy();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|