Files
fvsjs/include/logout.php
Torsten Schulz 44da93c0e9 initial
2023-06-16 11:57:49 +02:00

11 lines
269 B
PHP

<?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);
}
}