Some times we want to check whether user is already logged in or not in magento for this we can use the following code
<?php
if(!Mage::getSingleton('customer/session')->isLoggedIn()){
//not logged in
}else{
// logged in
}
?>
No comments:
Post a Comment