What is the command to reset a session variable --- essentially deleting
all of the values it contains? Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ron Piggott wrote:
What is the command to reset a session variable --- essentially
deleting all of the values it contains? Ron
I haven't checked, but how about unset() ?
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Feb 3, 2008 10:25 AM, Per Jessen [EMAIL PROTECTED] wrote:
Ron Piggott wrote:
What is the command to reset a session variable --- essentially
deleting all of the values it contains? Ron
I haven't checked, but how about unset() ?
/Per Jessen, Zürich
--
PHP General Mailing List
unset($_SESSION['var_name']);
bastien
From: [EMAIL PROTECTED]
To: php-general@lists.php.net
Date: Sun, 3 Feb 2008 13:14:47 -0500
Subject: [PHP] Resetting a session variable
What is the command to reset a session variable --- essentially
Resetting all session variables or one of those session vars ?
If you need to reset all then use *session_destroy() *function.
Hope it helps..
Regards,
Feris
http://top-10.bigspacehosting.com
On Feb 4, 2008 1:14 AM, Ron Piggott [EMAIL PROTECTED] wrote:
What is the command to reset a session
unset($_SESSION);
or
$_SESSION = array();
This reset all of the session variables. To reset only one, try this:
?php
unset($_SESSION['key']);
?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no
Hi
there are 2 functions
session_unset('Key');
session_destroy();
please find them in the manual. i think they are the 2 used for setting and
usetting the session.
On Feb 4, 2008 1:14 AM, Feris Thia C. [EMAIL PROTECTED] wrote:
Resetting all session variables or one of those session vars ?
On Sun, 2008-02-03 at 13:14 -0500, Ron Piggott wrote:
What is the command to reset a session variable --- essentially deleting
all of the values it contains? Ron
Assign the session to an empty array() and then use session_destroy()
All Email originating from UWC is covered by disclaimer
8 matches
Mail list logo