| re: WTF!? - $_SESSION passes vars BUT NOT ARRAYS!?!?!?!?!?!
Oli Filth wrote:[color=blue]
> h@s@n@starnetwx.net wrote:[color=green]
> > I THOUGHT those numbers would be treated as strings, because I[/color][/color]
quoted[color=blue][color=green]
> > them - apparently not!
> >
> > removed them and things are right in the world again!!
> >
> > 1M TX, Oli; although still not sure why a number treated as a[/color][/color]
string[color=blue][color=green]
> > would cause problems...
> >[/color]
>
> I think it must be a throwback to allow register_globals to work.
>
> When register_globals is enabled, $_SESSION['monkey'] becomes[/color]
$monkey.[color=blue]
> Therefore a variable such as $_SESSION[1] (or $_SESSION['1']) would
> become $1, which is obviously not a valid variable name.
>
> The only way to resolve this is not to allow $_SESSION[1] in the[/color]
first[color=blue]
> place.
>
> --
> Oli[/color]
That, at least, makes some sense!
TX again, Oli!
-Bob |