public function indexAction() { Kwf_Auth::getInstance()->clearIdentity(); Kwf_User_Autologin::clearCookies(); Kwf_Session::destroy(); Kwf_Util_Redirect::redirect($this->_getParam('redirect')); }
protected function _afterSave(Kwf_Model_Row_Interface $row) { parent::_afterSave($row); $user = Kwf_Registry::get('userModel')->getAuthedUser(); $user->deleted = 1; $user->save(); Kwf_Auth::getInstance()->clearIdentity(); Kwf_User_Autologin::clearCookies(); Kwf_Session::destroy(); }
public function logoutAction() { Kwf_Auth::getInstance()->clearIdentity(); Kwf_Session::destroy(); $this->_onLogout(); }