Thanks a lot, you save me some hours !

I totally focused on the exception message and not really check the save_path...

Anyone knows why a wrong save_path throws a "session already started" exception later ? Is there an issue ?

Thank you again,
Lucas

Hector Virgen a écrit :
I think you're missing a forward slash:

resources.session.save_path = APPLICATION_PATH "/../data/session/"

I'd also double-check that the folder is writable by php/apache.

--
Hector


On Fri, Jul 31, 2009 at 8:34 AM, Lucas Corbeaux <lucas.corbe...@gmail.com <mailto:lucas.corbe...@gmail.com>> wrote:

    Hi there,

    I have a strange exception with Zend_Application_Resource_Session.
    In fact, the resource works well, here is a part of my
    application.ini :
    resources.session.save_path = APPLICATION_PATH "../data/session/"
    resources.session.name <http://resources.session.name>
    <http://resources.session.name> = "myApplication"
    resources.session.use_only_cookies = "on"
    resources.session.remember_me_seconds = 3600

    Everything works fine, until I try to instantiate a
    Zend_Session_Namespace(). The namespace throws a
    Zend_Session_Exception with the following error message :
    "session has already been started by session.auto-start or
    session_start()"

    If I replace the Zend_Session_Namespace instantiation with a call
    to Zend_Session::namespaceGet(), all works fine. The problem is
    that Zend_Auth::getIdentity() use a session namespace for his
    storage, throwing the exception.

    The strangest thing is that if I quote the following line:
    ;resources.session.save_path = APPLICATION_PATH "../data/session/"
    There is no more exception thrown.

    I really don't understand why...

    Am I doing something wrong ?

    Thanks for help,
    Lucas




Reply via email to