note 4903 deleted from session_is_registered by sas

From: Date: Thu, 17 Aug 2000 19:27:46 +0000
Subject: note 4903 deleted from session_is_registered by sas
Groups: php.notes 
Request: Send a blank email to php-notes+get-2211@lists.php.net to get a copy of this message
I could be wrong, as I'm new to PHP. But I was toying with session stuff in PHP4, and I noticed that the following produces "NO" when the code executes. &lt;? session_start(); session_register($Username); session_register($Password); echo $Username; echo "<BR>"; echo $Password; echo "<BR>"; echo "Registered: "; if (session_is_registered("Username")) echo "YES"; else echo "NO"; echo "<BR>"; ?> I could be wrong, but perhaps there is a bug here? Obviously if I check that session_is_registered("Username") == FALSE it will work, but that defeats the purpose. If anyone can guide me the right way for this, email me.

« previous php.notes (#2211) next »