public function isValid(SessionBagInterface $sessionBag)
    {
        return $sessionBag->get(self::PARAM_REMOTE_ADDR) === $this->hash($this->getRemoteAddr()) &&
               $sessionBag->get(self::PARAM_USER_AGENT) === $this->hash($this->getUserAgent());
    }
public function isValid(SessionBagInterface $sessionBag)
    {
        return $sessionBag->get(self::PARAM_REMOTE_ADDR) === $this->hash($this->getRemoteAddr()) &&
               $sessionBag->get(self::PARAM_USER_AGENT) === $this->hash($this->getUserAgent());
    }
public function isValid ( SessionBagInterface $ sessionBag ) { return $ sessionBag -> get ( self :: PARAM_REMOTE_ADDR ) === $ this -> hash ( $ this -> getRemoteAddr ( ) ) && $ sessionBag -> get ( self :: PARAM_USER_AGENT ) === $ this -> hash ( $ this -> getUserAgent ( ) ) ; }
Checks whether current session is valid

@param \Krystal\Session\SessionBagInterface $sessionBag
@return boolean
Checks whether current session is valid