public function end()
    {
        if ($this->isStarted()) {
            if (is_callable($this->getCleanupCallback())) {
                call_user_func($this->getCleanupCallback());
            }
            session_write_close();
        }

        return $this;
    }
public function end()
    {
        if ($this->isStarted()) {
            if (is_callable($this->getCleanupCallback())) {
                call_user_func($this->getCleanupCallback());
            }
            session_write_close();
        }

        return $this;
    }
public function end ( ) { if ( $ this -> isStarted ( ) ) { if ( is_callable ( $ this -> getCleanupCallback ( ) ) ) { call_user_func ( $ this -> getCleanupCallback ( ) ) ; } session_write_close ( ) ; } return $ this ; }
End session.

Call cleanup callback and close session.

@return $this
End session .