Destroying Sessions

From: Date: Wed, 08 May 2002 23:43:30 +0000
Subject: Destroying Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96713@lists.php.net to get a copy of this message
Hi all, Need some more help here unfortunately. This time, I did check the manual, and well, I'm not to sure what I'm doing wrong... From a global (shared) script, I start a session.... <? session_start(); ?> I register session data, and use them throughout the site <? $_SESSION['something'] = "whatever"; ?> Now, how on earth do I destroy that session? <? include('../include/functions.inc'); session_unset(); $_SESSION = array(); session_destroy(); header ("Location: /index.php"); ?> I've tried all of that, to no prevail, the session remains, and my values registered in $_SESSION['whatever'] still remains?????? Any help / pointers, much needed and appreciated. -- me

« previous php.general (#96713) next »