session.auto_start is only usefull when not using classes as session
variables. because a class must be defined before it can be created (or
brought back to life from a session) it must be defined, this cant be done
with session.auto_start. I dont use session.auto_start. I find the ability
to use class's as session variables much more handy.


  Chris Lee

"Kurt Lieber" <[EMAIL PROTECTED]> wrote in message
> I am working on an open source e-commerce package and have hit a wall with
> sessions.
> If I have session.auto_start turned on, I get the following error message:
> Fatal error: The script tried to execute a method or access a property of
> incomplete object. Please ensure that the class definition shoppingcart of
> the object you are trying to operate on was loaded _before_ the session
> started in  <path to my file> on line 12
> If I turn session.auto_start off, the error disappears.
> So, the error message tells me that I can't use the class unless I've
> it before the session gets started.  However, session.auto_start (as far
as I
> know) starts a session immediately, before even waiting for a script to be
> fully parsed & executed.  So, the two seem mutually exclusive. (but then
> usefullness of session.auto_start would seem extremely limited)
> Is there a way
> I think there's some glaring errors in my understanding here.  Can someone
> help me fill in the holes?
> --kurt

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to