I am trying to use a RxJS BehaviorSubject that contains a boolean representing whether or not a user is connected/logged in the application.
BehaviorSubject
boolean
I usually provide SessionService at bootstrap (and not with providers: []) to make sure you share one global SessionService instance throughout the entire app.
SessionService
providers: []
bootstrap(AppComponent, [SessionService]);