src/Web/Sessions/SessionIterator.php
public function current()
    {
        return isset($this->_session->data[$this->_key]) ? $this->_session->data[$this->_key] : null;
    }
public function current()
    {
        return isset($this->_session->data[$this->_key]) ? $this->_session->data[$this->_key] : null;
    }
Returns the current array element.
This method is required by the interface [[\Iterator]].
@return mixed the current array element