initial
This commit is contained in:
11
include/logout.php
Normal file
11
include/logout.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
include 'renderer.php';
|
||||
|
||||
class Logout extends Renderer {
|
||||
public function __construct(?string $templateName = null) {
|
||||
session_start();
|
||||
$_SESSION['userid'] = 0;
|
||||
session_write_close();
|
||||
header('Location: index', true, 301);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user