session_unregister question

From: Date: Fri, 19 Jul 2002 05:53:12 +0000
Subject: session_unregister question
Groups: php.general 
Request: Send a blank email to php-general+get-108441@lists.php.net to get a copy of this message
Is it possible to somehow do a session unregister of all session variables except for (say) 2 variables. varA and varB So if my session had : varA, varB,varC, varD,varE (etc) I want to unregister all but varA and varB. Is there an 'elegant' way to do this without testing for all the variables in the session? Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli -------------------------------------------------------------------------- In wine there is truth, in beer there is strenght, in water there are bacteria

« previous php.general (#108441) next »