Skip to main content
Add some details to explain the answer.
Source Link
Ashraf Hefny
  • 171
  • 1
  • 1
  • 9

Try thisFirst check if user logged in or not then add log in/log out to your header :
use the following code:

if(Mage::getSingleton('customer/session')->isLoggedIn()){
   $layout->getUpdate()->addHandle('customer_logged_in');
}else{
   $layout->getUpdate()->addHandle('customer_logged_out');
}

Try this :

if(Mage::getSingleton('customer/session')->isLoggedIn()){
   $layout->getUpdate()->addHandle('customer_logged_in');
}else{
   $layout->getUpdate()->addHandle('customer_logged_out');
}

First check if user logged in or not then add log in/log out to your header :
use the following code:

if(Mage::getSingleton('customer/session')->isLoggedIn()){
   $layout->getUpdate()->addHandle('customer_logged_in');
}else{
   $layout->getUpdate()->addHandle('customer_logged_out');
}
Source Link
Ashraf Hefny
  • 171
  • 1
  • 1
  • 9

Try this :

if(Mage::getSingleton('customer/session')->isLoggedIn()){
   $layout->getUpdate()->addHandle('customer_logged_in');
}else{
   $layout->getUpdate()->addHandle('customer_logged_out');
}