Soshot/app/Controllers/Logout.php

14 lines
187 B
PHP
Raw Normal View History

2023-06-21 11:42:36 +02:00
<?php
namespace App\Controllers;
class Logout {
public function index() {
session_start();
session_destroy();
header("Location:/");
exit();
}
}