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.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Jatin,you have do some mistakes.
Mage::app('default');// assume that you have only one store
Mage::getSingleton("core/session", array("name" => "frontend"));code after Mage::app(); for inlize session for the file logout.php