Re: Re: Session hell: register_globals off
| From: | Randall Perry | Date: | Sat, 03 Apr 2004 01:45:48 +0000 |
| Subject: | Re: Re: Session hell: register_globals off | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182229@lists.php.net to get a copy of this message | ||
on 4/2/04 8:24 PM, Jason Barnett at jasbarne@indiana.edu wrote:
>
> Are you passing the session id between the pages? E.g. are you setting
> session cookies, or passing the session id as part of the url?
Doesn't php default to using cookies? I'm not doing anything other than
using the code I showed.
> page 1
> ______
>
> // include class definition file
> include_once "order_classes.php";
> // start session
> session_start();
> // create instance of class Order
> $order = New Order();
> // assign class instance to $SESSION[]
> $_SESSION['order'] = $order;
>
> page 2
> ______
>
> // include class definition file
> include_once "order_classes.php";
> // start session
> session_start();
> // assign $_SESSION['order'] object to variable
> $order = $_SESSION['order'];
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/