$this->getModelFromCache('XenForo_Model_Session')->processLastActivityUpdateForLogOut(XenForo_Visitor::getUserId());
XenForo_Application::get('session')->delete();
XenForo_Helper_Cookie::deleteAllCookies(
$this->_getRetainedCookies(),
array('user' => array('httpOnly' => false))
);
XenForo_Visitor::setup(0);