cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.3 - Can we override Mage_Core_Model_Session_Abstract_Varien class?

Magento 1.9.3 - Can we override Mage_Core_Model_Session_Abstract_Varien class?

 

I am trying to override Mage_Core_Model_Session_Abstract_Varien class but not getting success.

My config.xml file -

 <models>
        <coreoverride>
            <class>Test_CoreOverride_Model</class>               
        </coreoverride>
        <core>
            <rewrite>
                <session_abstract_varien>Test_CoreOverride_Model_Core_Session_Abstract_Varien</session_abstract_varien>
            </rewrite>
        </core>
    </models>

My custom model (Varien.php) file -

class Test_CoreOverride_Model_Core_Session_Abstract_Varien extends Mage_Core_Model_Session_Abstract_Varien {

public function start($sessionName = null) {      
    Mage::log('override success...', null, 'override.log');
}

}

Just want to know that can we do override this class or not? If yes, what is the issue?

Thanks in advance!

1 REPLY 1

Re: Magento 1.9.3 - Can we override Mage_Core_Model_Session_Abstract_Varien class?

Do you check the magento log file and report folder?

Was my answer helpful? You can Click Kudos/Accept As Solution.
200+ professional extensions for M1 & M2 with free lifetime updates!