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