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