note 41393 deleted from function.session-register by nlopess

From: Date: Fri, 09 Apr 2004 14:18:13 +0000
Subject: note 41393 deleted from function.session-register by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67883@lists.php.net to get a copy of this message
Note Submitter: webmaster ( at ) ngc-elites dot net ---- It's fully not recommended to user session_register(), I had several bugs using this. For example, if you register a var like this: <?php $user = "admin"; session_user($user); ?> This will work, but, if you change the value of $user on ANOTHER PAGE like this: <?php foreach($array as $user) { // blah blah } ?> $_SESSION['user'] won't be "admin" anymore, it will be the last value of $user in the other page.

« previous php.notes (#67883) next »