[PHP] Re: objects in sessions again

2004-04-22 Thread Justin Patrin
[EMAIL PROTECTED] wrote: Hi there, needing some more advise, is this function correct ? function create_object($class_name,$dir = null, $serialize = null) { $dir ? $dir = $dir."/" : $dir = ""; require_once("".CLASS_PATH.$dir.$class_name.".ph

Re: [PHP] Re: objects in sessions again

2004-04-21 Thread Jason Barnett
Yes thats fine, there is a DB and auth and template class i instance globally, these are across pages aswell should i do the same ?? I dont wont to go overboard and slow the system down, I'd really want to make it scalable. These dont store any data as such though like the rest. The others i instan

Re: [PHP] Re: objects in sessions again

2004-04-21 Thread daniel
> > If your goal is to store certain objects in sessions and some not, then > this should be fine. Just be sure that you intend to have only one > instance of the objects you want to serialize, or hell can still break > loose :) > Yes thats fine, there is a DB and auth and template class i inst

[PHP] Re: objects in sessions again

2004-04-21 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi there, needing some more advise, is this function correct ? function create_object($class_name,$dir = null, $serialize = null) { $dir ? $dir = $dir."/" : $dir = ""; require_once("".CLASS_PATH.$dir.$class_name.".php