public function close()
    {
        if (!$this->_started) {
            return true;
        }

        if (!session_write_close()) {
            throw new RuntimeException('Could not close the session');
        }

        $this->_started = false;

        return true;
    }
public function close()
    {
        if (!$this->_started) {
            return true;
        }

        if (!session_write_close()) {
            throw new RuntimeException('Could not close the session');
        }

        $this->_started = false;

        return true;
    }
public function close ( ) { if ( ! $ this -> _started ) { return true ; } if ( ! session_write_close ( ) ) { throw new RuntimeException ( 'Could not close the session' ) ; } $ this -> _started = false ; return true ; }
Write data and close the session

@return bool True if session was started
Write data and close the session