note 39621 deleted from ref.session by didou

From: Date: Thu, 05 Feb 2004 09:23:36 +0000
Subject: note 39621 deleted from ref.session by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64672@lists.php.net to get a copy of this message
Note Submitter: justin@lithotech.co.nz ---- If you're trying to use $_SESSION as an array, use key names. Numeric key indexes can fail to save the session properly under some situations. Good: $_SESSION['environment'][0]['user']['fred'] $_SESSION['environment'][1]['user']['fred'] $_SESSION['environment'][2]['user']['fred'] Bad: $_SESSION[0]['environment']['user']['fred'] $_SESSION[1]['environment']['user']['fred'] $_SESSION[2]['environment']['user']['fred']

« previous php.notes (#64672) next »