How to get the loggedin user information in magento

November 16, 2010 | In: Magento, web development

In most cases we need to get the current logged in user information like his/her email address, Id, any other attributes value. then we can get this by below code :

//Customer Email 
// Customer First name
And also we can find the custom attribute values.