public function stop():void
    {
        if ($this->isStarted()) {
            $this->getHandler()->destroy($this->getDataHolder()->getId());
            $this->dataHolder = null;
        }
    }
public function stop():void
    {
        if ($this->isStarted()) {
            $this->getHandler()->destroy($this->getDataHolder()->getId());
            $this->dataHolder = null;
        }
    }
public function stop ( ) : void { if ( $ this -> isStarted ( ) ) { $ this -> getHandler ( ) -> destroy ( $ this -> getDataHolder ( ) -> getId ( ) ) ; $ this -> dataHolder = null ; } }
Stops the session. All session data are destroyed in memory and on the
storage unit through the handler.

@throws NoSessionStartedException
Stops the session . All session data are destroyed in memory and on the storage unit through the handler .