Re: PHP 4.0 Bug #5783 Updated: session_register always returns true
| From: | Albert Chin-A-Young | Date: | Wed, 23 Aug 2000 13:18:10 +0000 |
| Subject: | Re: PHP 4.0 Bug #5783 Updated: session_register always returns true | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-30361@lists.php.net to get a copy of this message | ||
On Wed, Aug 23, 2000 at 12:25:13PM -0000, Bug Database wrote:
> ID: 5783
> Updated by: sniper
> Reported By: china@thewrittenword.com
> Status: Closed
> Bug Type: Session related
> Assigned To:
> Comments:
>
> Yes, this is documented. session_start() returns always true.
> session_register() returns true only when the variable is
> successfully registered with the session.
>
> --Jani
Did you look at the sample code I submitted? If you use it,
session_register will *always* return true. So, what does
"session_register() returnes true only when the variable is
successfully registered" mean? Can a variable be registered but the
session handling routine not write it to whatever the backend-storage
mechanism is? This seems wrong to me (because then when the user goes
to another web page, the variable will *not* be available).
--
albert chin (china@thewrittenword.com)