PROJET-WEB_STRI1A/WEB/deconnexion.php

11 lines
167 B
PHP

<?php
require_once ('connexionBD.php');
session_start();
if (isset($_SESSION['mail'])){
session_unset();
session_destroy();
}
header('Location: index.php');