I am trying to logout user
I used following code
<?php
require_once 'app/Mage.php';
Mage::app();
Mage::getSingleton('customer/session')->logout();
?>
But it's not working
Please help me to solve this.
logoutmagento-1.9
I am trying to logout user
I used following code
<?php
require_once 'app/Mage.php';
Mage::app();
Mage::getSingleton('customer/session')->logout();
?>
But it's not working
Please help me to solve this.
Best Answer
Jatin,you have do some mistakes.
Mage::app();
toMage::app('default');
// assume that you have only one storeMage::getSingleton("core/session", array("name" => "frontend"));
code after Mage::app(); for inlize session for the file logout.php