1

I was wondering changing the way Magento deal with sessions and for my surprise I discovered my /app/etc/local.xml doesn't have a session_save tag set.

Is it seems to be a problem? Is it safe to set it up manually?

Thanks in advance

0

1 Answer 1

0

It should be no problem to set it manually. If the tag is not set files is default value.

See Mage_Core_Model_Session_Abstract

/**
 * Retrieve session save method
 *
 * @return string
 */
public function getSessionSaveMethod()
{
    if (Mage::isInstalled() && $sessionSave = Mage::getConfig()->getNode(self::XML_NODE_SESSION_SAVE)) {
        return $sessionSave;
    }
    return parent::getSessionSaveMethod();
}

And parrent one ...

/**
 * Retrieve session save method
 * Default files
 *
 * @return string
 */
public function getSessionSaveMethod()
{
    return 'files';
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.