mirror of
https://github.com/gabrielkheisa/tugas-pjpb.git
synced 2025-08-21 11:31:11 +00:00
first
This commit is contained in:
14
logout.php
Normal file
14
logout.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// Initialize the session
|
||||
session_start();
|
||||
|
||||
// Unset all of the session variables
|
||||
$_SESSION = array();
|
||||
|
||||
// Destroy the session.
|
||||
session_destroy();
|
||||
|
||||
// Redirect to login page
|
||||
header("location: login.php");
|
||||
exit;
|
||||
?>
|
Reference in New Issue
Block a user