how to unregister session stored as multidimensional array?

From: Date: Mon, 05 Dec 2005 20:45:43 +0000
Subject: how to unregister session stored as multidimensional array?
Groups: php.general 
Request: Send a blank email to php-general+get-226896@lists.php.net to get a copy of this message
Is this possible at all: I have stored info from form in session: $_SESSION['client']['name'] = 'Name' $_SESSION['client']['address'] = 'Address' $_SESSION['client']['city'] = 'City' $_SESSION['client']['state'] = 'State' $_SESSION['client']['zip'] = 'Zip Now, I want to unregister all $_SESSION['client'] info EXCEPT $_SESSION['client']['name']. With session_unregister('client'); I clear everything. session_unregister('address'); doesn't clear this session. session_unregister($_SESSION['client']['address']); doesn't work. What am I doing wrong? Thanks for any help. -afan

« previous php.general (#226896) next »