public function removeData()
    {
        $session = $this->getSession();

        /** @noinspection PhpUndefinedFieldInspection */
        if ($session->data !== null) {
            unset($session->data);

            return true;
        }

        return false;
    }
public function removeData()
    {
        $session = $this->getSession();

        /** @noinspection PhpUndefinedFieldInspection */
        if ($session->data !== null) {
            unset($session->data);

            return true;
        }

        return false;
    }
public function removeData ( ) { $ session = $ this -> getSession ( ) ; /** @noinspection PhpUndefinedFieldInspection */ if ( $ session -> data !== null ) { unset ( $ session -> data ) ; return true ; } return false ; }
Remove current route data.

@return bool
@throws \Zend\Session\Exception\InvalidArgumentException
Remove current route data .