public function postDispatch(Zend_Controller_Request_Abstract $request) { if (Zend_Auth::getInstance()->hasIdentity()) { $identity = Zend_Auth::getInstance()->getIdentity(); $activeUser = new Ot_Model_DbTable_Activeuser(); $thisUser = $activeUser->find($identity->accountId); $data = array('accountId' => $identity->accountId, 'dt' => time()); try { if (is_null($thisUser)) { $activeUser->insert($data); } else { $activeUser->update($data, null); } $activeUser->purgeInactiveUsers(); } catch (Exception $e) { // we don't care if it fails. this shouldn't interrupt service at all return false; } } }