Re: how do I delete session

From: Date: Thu, 05 Apr 2001 10:18:18 +0000
Subject: Re: how do I delete session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47224@lists.php.net to get a copy of this message
session_register("name") ; = assign variable to session session_unregister("name") ; = unassign the variable make complete kill the session (and all the variable in session) use : session_destroy() ; -- -Tuna- ""Jacky"" <jacky@activelifestyle.com> wrote in message news:00b001c0be11$a9e2abe0$6400a8c0@activelifestyle.com... Hi all I wen tto check manual, not quite get it though. I have set up session and I want that deleted, but it did not work so far with session_unset or session_unregister. I figure I may have used them incorrectly here is what i did <?php session_start(); global $name; $name = "foo"; session_register("name"); ....... session_unregister("name"); ?> It appears to me that the value is still there all the time, unles I close the browser. what did I do wrong?? Jack jacky@activelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

« previous php.general (#47224) next »