1) I registered my extension at app/etc/modules/Bmg_Golo.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Bmg_Golo>local</Bmg_Golo>
<active>true</active>
</modules>
</config>
2) My config.xml is at app/code/local/Bmg/Golo/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Bmg_Golo>
<version>0.0.1</version>
</Bmg_Golo>
</modules>
<global>
<models>
<Bmg_Golo>
<class>Bmg_Golo_Model</class>
</Bmg_Golo>
</models>
</global>
<frontend>
<events>
<controller_action_postdispatch_customer_account_resetpasswordpost>
<observers>
<Bmg_Golo>
<class>Bmg_Golo/observer</class>
<method>logout</method>
</Bmg_Golo>
</observers>
</controller_action_postdispatch_customer_account_resetpasswordpost>
</events>
</frontend>
</config>
3) I created an observer at app/code/local/Bmg/Golo/module/Observer.php
<?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