Add a isLoggedIn method to the usersession and deprecate the isLoggedIn ...

Probably makes sense as a separate PR

Related to #12851

@MorrisJobke @DeepDiver1975 @LukasReschke @nickvergessen