bla
kak
This commit is contained in:
7
dev_mvc/model/actions/model_signout.php
Normal file
7
dev_mvc/model/actions/model_signout.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
include_once("./controller/UserSession.php");
|
||||
if(UserSession::isSessionValid()){
|
||||
Database::invalidateSession(UserSession::getSession()->token);
|
||||
}
|
||||
session_destroy();
|
||||
?>
|
||||
Reference in New Issue
Block a user