plateforme-tfjm2/server_files/controllers/deconnexion.php

9 lines
189 B
PHP

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