Re: Destroying Sessions
| From: | Chris Knipe | Date: | Thu, 09 May 2002 00:00:54 +0000 |
| Subject: | Re: Destroying Sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96723@lists.php.net to get a copy of this message | ||
Nevermind....
For it sorted... Does anyone have any reference to any documentation on
how to use if statements properly?
I know this sounds silly now, but when exactly do you use $var = $value, or
$var == $value, and all the other operators?
I'd really like to read up on this if someone can point me to a good
reference... I'm having the same type of situations with Perl as well...
Maybe it's just be who is stupid here... But hey, I'm trying :)
--
me
----- Original Message -----
From: "Chris Knipe" <savage@savage.za.org>
To: <php-general@lists.php.net>
Sent: Thursday, May 09, 2002 1:43 AM
Subject: [PHP] Destroying Sessions
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>