note 72975 rejected from function.unset by tularis

From: Date: Tue, 06 Feb 2007 16:48:10 +0000
Subject: note 72975 rejected from function.unset by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122929@lists.php.net to get a copy of this message
Note Submitter: bjarne_andre at hotmail dot com ---- On my website I use the following to create a sessionvar: $_session["test"] = array(1,2,3,4,5); If I try to delete it with: unset($_session["test"]); It now seems that $_session["test"] is deleted, but if I do the following: $_session["test"][1]=3; $_session["test"] becomes [1,3,3,4,5]! Any suggestions? Is it a good aproach to set $_session["test"] = false ?

« previous php.notes (#122929) next »