plateforme-tfjm2/server_files/controllers/deconnexion.php

11 lines
200 B
PHP

<?php
require_once "../config.php";
unset($_SESSION["user_id"]);
session_destroy();
require_once "../views/header.php";
echo "<h2>Déconnexion réussie !</h2>";
require_once "../views/footer.php";