Hello All,
I am writing here a simple but important script for checking whether any customer is logged in or not in Magento site’s frontend
<?php $customer_status = Mage::getSingleton('customer/session')->isLoggedIn(); //1 if any cutomer is logged in ?>
Hope this is useful
.