note 29822 added to function.session-is-registered

From: Date: Wed, 26 Feb 2003 06:18:25 +0000
Subject: note 29822 added to function.session-is-registered
Groups: php.notes 
Request: Send a blank email to php-notes+get-44537@lists.php.net to get a copy of this message
PHP is correct in destroying session variables with no value. This keeps the session file size down when a variable obviously of no worth is added. Whether you use $_session or session_register() is up to the server design and developer preference. I am hoping someone has some information on wether you can add wildcards to your session_is_registered() variable name. e.g session_is_registered("order*"); If this is not the case... One could do this kind of thing by Physically opening the session file and searching through it with posix style string matching. Not that it would be recommended. ANY comments or knowledge would be appreciated -- http://www.php.net/manual/en/function.session-is-registered.php http://master.php.net/manage/user-notes.php?action=edit+29822 http://master.php.net/manage/user-notes.php?action=delete+29822 http://master.php.net/manage/user-notes.php?action=reject+29822

« previous php.notes (#44537) next »