/** * exit(): Perform exit for redirector * * @return void */ public function redirectAndExit() { if ($this->getCloseSessionOnExit()) { // Close session, if started if (class_exists('IfwPsn_Vendor_Zend_Session', false) && IfwPsn_Vendor_Zend_Session::isStarted()) { IfwPsn_Vendor_Zend_Session::writeClose(); } elseif (isset($_SESSION)) { session_write_close(); } } $this->getResponse()->sendHeaders(); exit; }
/** * Destructor * * @return void */ public function __destruct() { IfwPsn_Vendor_Zend_Session::writeClose(); }