Added authentication functionality and simple role based model
This commit is contained in:
8
logout.php
Normal file
8
logout.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
require 'auth.php';
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$_SESSION = [];
|
||||
session_destroy();
|
||||
|
||||
echo json_encode(['success' => true]);
|
||||
Reference in New Issue
Block a user