note 40142 rejected from function.session-destroy by vincent

From: Date: Mon, 23 Feb 2004 13:12:50 +0000
Subject: note 40142 rejected from function.session-destroy by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65586@lists.php.net to get a copy of this message
Note Submitter: bilgi@ilanyaz.com ---- Hello guys, I'm trying tro make a logout.php but everytime i fail. I get this: Warning: Trying to destroy uninitialized session in /home/virtual/site257/fst/var/www/html/loguit.php on line 7 below you wil see the logout.php : <?php include("connection.php"); $_SESSION = array(); session_destroy(); ?> <html> <head> <title>Je bent succesvol uitgelogd</title> </head> <body> <h1>Basarili bir sekilde çikis yaptiniz.</h1> Basarili bir sekilde çikis yaptiniz. Yeniden giris yapmak için <a href="login.php">tiklayin</a> . </body> </html> pleas help me what can i do? Regards A. Pehlivan

« previous php.notes (#65586) next »