Even if I'm logged out of the site, I see my information in Online customers section in Magento admin if I'm not closing the window which seems to be normal Magento flow.
How can I destroy my session completely so that when I'm logged out, website will track me as a guest user?
I've tried firing customer_logout
event and cleaning frontend cache using Mage::app()->cleanCache();
but it doesn't seem to be built for this purpose.
Here is observer function
public function flushCache(Varien_Event_Observer $observer)
{
$customer = $observer->getEvent()->getCustomer();
Mage::app()->cleanCache();
Mage::getSingleton('customer/session')->unsetAll();
}