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.
Jatin,you have do some mistakes.
Mage::app();
to Mage::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
<magentohost>/logout.php
@AmitBeramage.php
is calledlogin
web service, I created it I gottoken
andtoken secret
but when I login, I am not able to get another userstoken
andtoken secret
that's why I want to logout manually. @AmitBera