Re: UNSETing Session Variables
| From: | Kevin Stone | Date: | Mon, 08 Jul 2002 18:47:36 +0000 |
| Subject: | Re: UNSETing Session Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106152@lists.php.net to get a copy of this message | ||
We're going to need to see some of your code to help you further.
-Kevin
----- Original Message -----
From: jepadilla@bh-corp.com
To: Kevin Stone ; php-general@lists.php.net
Sent: Monday, July 08, 2002 12:15 PM
Subject: Re: [PHP] UNSETing Session Variables
I tried to enter the comand as such
unset ($_SESSION["choice"]);
I thought everything in php was double quotes. but even with single quotes it still isn't
quite working. If I do it on the first page then it won't let a later command assign anything
to the variable, but if I do it on a seperate third page, it doesn't reset anything.
I have been trying to avoid unregistering variables and then reseting them. Seems a little too
messy for my programming tastes.
Jed
"Kevin Stone" <kevin@helpelf.com>
07/08/2002 12:01 PM
To: <php-general@lists.php.net>, <jepadilla@bh-corp.com
cc:
Subject: Re: [PHP] UNSETing Session Variables
unsset($_SESSION['choice']);
// .. or .. //
session_unregister('choice');
-Kevin
----- Original Message -----
From: <jepadilla@bh-corp.com>
To: <php-general@lists.php.net>
Sent: Monday, July 08, 2002 11:54 AM
Subject: [PHP] UNSETing Session Variables
> I am having a slight problem unseting some session variable.
>
> here is an exaple of what I have
>
> Page1:
> choice: 1
> choice: 2
> choice: 3
> choice: 4
> Click on Submit button after choosing 1, 2, 3, or 4
>
> Page 2:
> Loads information from previoius choice.
> Start over again
>
> I am using a session variable for choice and am trying at the beginning of
> page 1 to unset the session variable, but it is never beign over written
> or rest.
>
> Please Help
>
> Jed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php