Ask a Question related to PHP Development, Design and Development.
-
Tim Winters #1
deleting session variables
Is there a way to wipe out all previous session variables with one
command?
Thx
Tim Winters
Creative Development Manager
Sampling Technologies Incorporated
1600 Bedford Highway, Suite 212
Bedford, Nova Scotia
B4A 1E8
[url]www.samplingtechnologies.com[/url]
[email]webmaster@samplingtechnologies.com[/email]
[email]csnm@samplingtechnologies.com[/email]
Office: 902 450 5500
Cell: 902 430 8498
Fax:: 902 484 7115
Tim Winters Guest
-
#39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug... -
#39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables
From: krudtaa at yahoo dot com Operating system: All PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug... -
Deleting or Modifying Session Variables in anothersession
Is it possible to delete or clear session variable from another session? Here's my scenario. A user opens the public part of a web site which... -
#25629 [Opn->Bgs]: session cookie being set to deleted when deleting a session
ID: 25629 Updated by: sniper@php.net Reported By: john at tarot dot com -Status: Open +Status: Bogus... -
Session problem when setting session variables in files that are in different directories
I am running PHP 4.3.0 on a WinXPpro machine and I recently got problem with sessions. What I am building is a loginsystem and I need to save... -
Cpt John W. Holmes #2
Re: [PHP] deleting session variables
From: "Tim Winters" <csnm@samplingtechnologies.com>
With register_globals OFF:> Is there a way to wipe out all previous session variables with one
> command?
$_SESSION = array();
If register_globals is ON and you want to get rid of $val1, $val2, $val3,
etc... then:
foreach($_SESSION as $key => $value)
{ unset($$key); }
---John Holmes...
Cpt John W. Holmes Guest
-
Tim Winters #3
RE: [PHP] deleting session variables
Thanks,
So what does session_unset() do then?
Tim Winters
Creative Development Manager
Sampling Technologies Incorporated
1600 Bedford Highway, Suite 212
Bedford, Nova Scotia
B4A 1E8
[url]www.samplingtechnologies.com[/url]
[email]webmaster@samplingtechnologies.com[/email]
[email]csnm@samplingtechnologies.com[/email]
Office: 902 450 5500
Cell: 902 430 8498
Fax:: 902 484 7115
-----Original Message-----
From: CPT John W. Holmes [mailto:holmes072000@charter.net]
Sent: August 19, 2003 5:11 PM
To: [email]csnm@samplingtechnologies.com[/email]; [email]php-general@lists.php.net[/email]
Subject: Re: [PHP] deleting session variables
From: "Tim Winters" <csnm@samplingtechnologies.com>With register_globals OFF:> Is there a way to wipe out all previous session variables with one
> command?
$_SESSION = array();
If register_globals is ON and you want to get rid of $val1, $val2,
$val3,
etc... then:
foreach($_SESSION as $key => $value)
{ unset($$key); }
---John Holmes...
Tim Winters Guest
-
Curt Zirzow #4
Re: [PHP] deleting session variables
* Thus wrote Tim Winters (csnm@samplingtechnologies.com):
John overlooked that function, and instead looped through the> Thanks,
>
> So what does session_unset() do then?
variables in php instead. This would be used if you have
register_globals on and choose to use sessions insecurely.
Curt>
> -----Original Message-----
> From: CPT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: August 19, 2003 5:11 PM
> To: [email]csnm@samplingtechnologies.com[/email]; [email]php-general@lists.php.net[/email]
> Subject: Re: [PHP] deleting session variables
>
>
> If register_globals is ON and you want to get rid of $val1, $val2,
> $val3,
> etc... then:
>
> foreach($_SESSION as $key => $value)
> { unset($$key); }
>
--
"I used to think I was indecisive, but now I'm not so sure."
Curt Zirzow Guest
-
Cpt John W. Holmes #5
Re: [PHP] deleting session variables
From: "Tim Winters" <csnm@samplingtechnologies.com>
Ah, good catch. Use that instead of my second example. If register_globals> So what does session_unset() do then?
is ON, it appears that session_unset() will take care of getting rid of the
global variables made.
---John Holmes...
> From: CPT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: August 19, 2003 5:11 PM
> To: [email]csnm@samplingtechnologies.com[/email]; [email]php-general@lists.php.net[/email]
> Subject: Re: [PHP] deleting session variables
>
> From: "Tim Winters" <csnm@samplingtechnologies.com>>> > Is there a way to wipe out all previous session variables with one
> > command?
> With register_globals OFF:
>
> $_SESSION = array();
>
> If register_globals is ON and you want to get rid of $val1, $val2,
> $val3,
> etc... then:
>
> foreach($_SESSION as $key => $value)
> { unset($$key); }
>
> ---John Holmes...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>Cpt John W. Holmes Guest



Reply With Quote

