Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread James Kaufman
On Thu, Feb 05, 2004 at 02:32:49PM -0500, Phillip Jackson wrote: > it's this easy with register_globals off: > > $_SESSION['order'] = "someValue"; > > no need to name the session. > > ~Phillip > > > "John Nichel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Randall Perry w

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Phillip Jackson
it's this easy with register_globals off: $_SESSION['order'] = "someValue"; no need to name the session. ~Phillip "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Randall Perry wrote: > > > Ok, with register globals on, this works ('order' being a php object): > > >

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Jason Wong
On Friday 06 February 2004 01:16, Randall Perry wrote: > Get the errors: > PHP Notice: Undefined variable: _SESSION > PHP Fatal error: Call to undefined function: print_something() > Meaning the _SESSION arr is not recognized and the $order obj variable has > not been passed. > > What

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread John Nichel
Randall Perry wrote: Ok, with register globals on, this works ('order' being a php object): session_name('name'); session_register('order'); $order->print_something(); With with register globals off, this fails: session_name('name'); $order = $_SESSION['order']; $order->

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Randall Perry
Ok, with register globals on, this works ('order' being a php object): session_name('name'); session_register('order'); $order->print_something(); With with register globals off, this fails: session_name('name'); $order = $_SESSION['order']; $order->print_something(); G

[PHP] Re: Using sessions with register globals off

2004-02-05 Thread Phillip Jackson
PHP Manual: If register_globals is enabled, then each global variable can be registered as session variable. Upon a restart of a session, these variables will be restored to corresponding global variables. Since PHP must know which global variables are registered as session variables, users need t