My observer is not logging out the user when password is changed

by Abhilash Narayan   Last Updated November 14, 2017 18:09 PM

1) I registered my extension at app/etc/modules/Bmg_Golo.xml

<?xml version="1.0" encoding="UTF-8"?>

local true

2) My config.xml is at app/code/local/Bmg/Golo/etc/config.xml

<?xml version="1.0" encoding="UTF-8"?>

0.0.1 Bmg_Golo_Model Bmg_Golo/observer logout

3) I created an observer at app/code/local/Bmg/Golo/module/Observer.php


/** * */ class Bmg_Golo_Model_Observer { public function logout($observer) { $session = Mage::getSingleton('customer/session'); if ($session->isLoggedIn()) { Mage::getSingleton('customer/session')->logout(); } }

} ?>

Now when i log in as customer and change password. Its not logging out

Related Questions