/** * writeClose() - Shutdown the sesssion, close writing and detach $_SESSION from the back-end storage mechanism. * This will complete the internal data transformation on this request. * * @param bool $readonly - OPTIONAL remove write access (i.e. throw error if Zend_Session's attempt writes) * @return void */ public static function writeClose($readonly = true) { if (self::$_writeClosed) { return; } if ($readonly) { self::$_writable = false; } session_write_close(); self::$_writeClosed = true; }