Message: 6
Date: Mon, 10 Oct 2005 19:11:05 -0600
From: Wes Hays <[EMAIL PROTECTED]>
Subject: Re: [agavi-dev] Re: SessionStorage auto_start
To: Agavi Development <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Veikko,

I am getting confused on your CreoleSessionStorage::initialize method because you have:

        if ($this->getParameter('auto_start', true)) {
            // start our session
            session_start();
        }

at the bottom.  Wouldn't your autoStart method handle this?


It's confusing but I left it there intentionally. This is because the separation of initialization and autostart is not yet done to the official Agavi and I wanted my CreoleSessionStorage to work with current official Agavi as well as with my own hacked version.

My SessionStorage::autoStart tests whether a session has been started already or not before calling session_start so it's safe -- although not wise -- to start it in MyOwnCoolSessionStorarage::initialize. Note that you must also use my version of Context to enable autoStart.


-veikko

_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to