i have this problem too and i login my minehut it says Login failed: Invalid session (Try restarting the game and the launcher.) So every time I log into the minehut server it always says this please help me :((
When I connect to my own server, "Failed to login: Invalid session game and try restarting the launcher." (Actually, when I enter other servers, this article appears.)