12 lines
225 B
PHP
12 lines
225 B
PHP
<?php
|
|
require_once 'config.php';
|
|
session_start();
|
|
|
|
// Add system log before clearing session
|
|
addSystemLog('LOGOUT', 'ออกจากระบบ');
|
|
|
|
session_unset();
|
|
session_destroy();
|
|
header("Location: login.php");
|
|
exit;
|