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

My config.xml file -


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 Answer 1


You can't overwrite this way for this abstract class. Make a copy in local directory and modify what you want. But be careful for upcoming release if magento modify this class then you need to adjust that too.

New location will be:


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.