Soshot/app/Controllers/Logout.php

13 lines
187 B
PHP

<?php
namespace App\Controllers;
class Logout {
public function index() {
session_start();
session_destroy();
header("Location:/");
exit();
}
}