Are you getting a “Failed to login: Invalid session” error in Minecraft?
Here is the second part of the error, “Try restarting your game”.
The error happens when you try to connect to a Minecraft server.
You could be using the official launcher or the TLauncher.
In this guide, you’ll learn how to fix “Failed to login: Invalid session (try restarting your game)” in Minecraft or TLauncher.
- What causes an invalid session in Minecraft?
- How to fix “Failed to login: Invalid session (try restarting your game)” in Minecraft
What causes an invalid session in Minecraft?

There are two main causes for an invalid session in Minecraft.
Firstly, you might have started two instances of Minecraft and the old session ID is invalidated.
Secondly, you might be using a cracked version of the game (e.g. TLauncher).
Most Minecraft servers do not allow cracked players to enter them.
How to fix “Failed to login: Invalid session (try restarting your game)” in Minecraft
To fix “Failed to login: Invalid session (try restarting your game)” in Minecraft, you need to quit the game, close the launcher, and reopen it.
If you’re a server owner, you need to set “online-mode” to “false” in your server’s properties.
If you’re playing a cracked version of Minecraft, you need to join a server that allows cracked versions or doesn’t check for licenses.
General fix:
- Quit the game/server > close the launcher > reopen the launcher > join the game/server.
Fix for server owners:
- Open the server.properties file > Online-Mode > set to “False”.
- Save the file and restart your server.
Fix for cracked players (TLauncher):
- Log in using the Minecraft/Mojang license in the “Accounts” menu item.
- Join a server that allows cracked versions/does not check for licenses.
Further reading
How to Add User to Group in LuckPerms