Chris, is this requirement spelled out in the manual anywhere? I have never
seen any effect of the order of calling session_register() and assigning a
value in my own code. In fact, I almost always register a variable before
assigning a value.
Just curious.
Kirk
> -----Original Message-----
> From: Chris Lee [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 6:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Custom Session Func?
>
>
> common mistake, your session_register() is before you assign
> the variable, you must have it after. Ive done this myself. oi.
>
> session_start();
> if ( ! session_is_registered("user_key") ) {
> $user_key = "dummy";
> session_register("user_key");
> }
[major snippage]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]