protected function getSessionKey($type = null)
    {
        return $this->context
             . ($this->contextSub ? '[' . $this->contextSub . ']' : null)
             . ($type ? ':' . $type : null);
    }
protected function getSessionKey($type = null)
    {
        return $this->context
             . ($this->contextSub ? '[' . $this->contextSub . ']' : null)
             . ($type ? ':' . $type : null);
    }
protected function getSessionKey ( $ type = null ) { return $ this -> context . ( $ this -> contextSub ? '[' . $ this -> contextSub . ']' : null ) . ( $ type ? ':' . $ type : null ) ; }
Returns session key, optionally for a given type of data.

@param string|null $type
@return string
Returns session key optionally for a given type of data .