public function isLogined()
    {
        $session = $this->getSession();
        $cookie = $this->getCookie();

        if ($cookie->has(self::USER_SESSION)) {
            $login = $cookie->get(self::USER_SESSION);
            $login = unserialize(base64_decode($login));
        }elseif (false !== $session->has(self::USER_SESSION)) {
            $login = $session->get(self::USER_SESSION);
        }else{
            return false;
        }

        return $this->isSameIp($login);
    }
public function isLogined()
    {
        $session = $this->getSession();
        $cookie = $this->getCookie();

        if ($cookie->has(self::USER_SESSION)) {
            $login = $cookie->get(self::USER_SESSION);
            $login = unserialize(base64_decode($login));
        }elseif (false !== $session->has(self::USER_SESSION)) {
            $login = $session->get(self::USER_SESSION);
        }else{
            return false;
        }

        return $this->isSameIp($login);
    }
public function isLogined ( ) { $ session = $ this -> getSession ( ) ; $ cookie = $ this -> getCookie ( ) ; if ( $ cookie -> has ( self :: USER_SESSION ) ) { $ login = $ cookie -> get ( self :: USER_SESSION ) ; $ login = unserialize ( base64_decode ( $ login ) ) ; } elseif ( false !== $ session -> has ( self :: USER_SESSION ) ) { $ login = $ session -> get ( self :: USER_SESSION ) ; } else { return false ; } return $ this -> isSameIp ( $ login ) ; }
check is login usered

@return bool
check is login usered