Ma sessions fonctionne parfaitement lors de l'enregistrement mais à la deconnexion j'ai à l'écrant :
Comment cela se fait il?Warning: session_destroy(): Trying to destroy uninitialized session in /home/lanato/public_html/web/_files/_perso/deconnect.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at /home/lanato/public_html/web/_files/_perso/deconnect.php:7) in /home/lanato/public_html/web/_files/_perso/deconnect.php on line 8
VOici le code de ma page de deconnexion :
<?php
// On écrase le tableau de session
$_SESSION = array();
// On détruit la session
session_destroy();
$reponse = header("Location: ../../index.php");
echo $reponse;
?>
MErci de m'aider