How to bind an action after customer login success using Magento?

Add the event to your module’s config.xml file
(app/code/local/Namespace/Modulename/etc/config.xml)

Now create a model Namespace_Modulename_Model_Observer

(app/code/local/Namespace/Modulename/Model/Observer.php).
Add a customerLogin() method to the class: