public function isAuthenticated()
    {
        if (!$this->session->has('usr_id')) {
            return false;
        }

        if ($this->session->has('session_id')) {
            if (null !== $this->app['repo.sessions']->find($this->session->get('session_id'))) {
                return true;
            }
        }

        $this->session->invalidate();
        $this->reinitUser();

        return false;
    }
public function isAuthenticated()
    {
        if (!$this->session->has('usr_id')) {
            return false;
        }

        if ($this->session->has('session_id')) {
            if (null !== $this->app['repo.sessions']->find($this->session->get('session_id'))) {
                return true;
            }
        }

        $this->session->invalidate();
        $this->reinitUser();

        return false;
    }
public function isAuthenticated ( ) { if ( ! $ this -> session -> has ( 'usr_id' ) ) { return false ; } if ( $ this -> session -> has ( 'session_id' ) ) { if ( null !== $ this -> app [ 'repo.sessions' ] -> find ( $ this -> session -> get ( 'session_id' ) ) ) { return true ; } } $ this -> session -> invalidate ( ) ; $ this -> reinitUser ( ) ; return false ; }
Tell if current a session is open

@return boolean
Tell if current a session is open