Check customer is login or not in magento

Magento have different session. You can check customer is login or not using customer/session.
You can check it using this piece of code:

if(!Mage::getSingleton('customer/session')->isLoggedIn()){
//not logged in
}else{
// logged in
}

Tags: Magento1,

Related Posts

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *