At 11:59 AM 12/26/2001 -0200, Julio Nobrega Trabalhando wrote:
> Is that while porting a script to PHP 4.1.0, where I used to check:
>
>if (session_is_registered('del_power') && $del_power == 1) {
> // del stuff
>}
>
> Because $del_power could be registered as 1 or 0, now I can do:
>
>if ($_SESSION['del_power'] == 1) {
> // del stuff
>}
>
> Nice. Less typing and easier to read.
Couldn't you have done this with your original script? :
if ($HTTP_SESSION_VARS['del_power'] == 1) {
//
}
??
--
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]