Fix Minecraft "Failed to Login: Invalid Session"
Failed to login: Invalid sessionBad loginInvalid session (try restarting your game)"Invalid session" means the server asked Mojang/Microsoft to verify your account and the check failed — usually a stale login session. Here's the quick client fix and the server-side cause.
The instant fix: restart the launcher
Nine times out of ten this is a stale session token. Fully close the Minecraft launcher and the game, reopen the launcher, and let it re-authenticate your Microsoft account. Then rejoin.
Still failing? Re-login your account
Sign out of your Microsoft account in the launcher and sign back in to force a fresh token. This clears a session that expired in the background.
The server side: online-mode
Servers with online-mode=true (the default) verify every player with Mojang. That's correct and secure. If the server runs online-mode=false (offline/cracked), authentication is skipped entirely — which has real downsides:
# server.properties
online-mode=true # verifies accounts (recommended)
online-mode=false lets anyone join under any username — including impersonating your admins — and offers no account security. Keep it true unless you specifically need offline play, and even then use a whitelist.
Other quick checks
- Check the Mojang/Minecraft services aren't down.
- If you just changed your username, wait — the change can take time to propagate.
- Make sure your system clock is correct (a wrong clock breaks auth).
"Invalid session" is a stale login. Restart the launcher to re-authenticate — it fixes it almost every time.
Minecraft is a trademark of Mojang Synergies AB / Microsoft. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Mojang or Microsoft.
Secure, easy Minecraft hosting
Our Minecraft hosting runs online-mode with whitelist controls and one-click setup, protected in Frankfurt.
Frequently asked questions
How do I fix "Failed to login: Invalid session"?
Fully close the game and the launcher, reopen the launcher so it re-authenticates your Microsoft account, then rejoin. If that fails, sign out and back in to force a fresh session token.
Is "invalid session" a server problem?
Usually not — it's your login session that's stale. But a server running online-mode in a misconfigured way, or Mojang services being down, can also cause it. Restart the launcher first.
Should my server use online-mode=false?
Only if you specifically need offline play, and even then add a whitelist. online-mode=false skips account verification, so anyone can join under any name, including impersonating staff. Keep it true when you can.
Related articles
Fix AMX Mod X "Couldn't load library" / Plugin Failed in CS 1.6
AMXX plugin stuck on "bad load", "couldn't load library" or "failed"? The real causes and the exact fix.
Read fix Game ServersFix FiveM "Couldn't load resource" / Failed to Start
A FiveM resource won't start or throws "couldn't load resource"? Here are the real causes and fixes.
Read fix Game ServersFix Rust Oxide / uMod Plugins Not Loading
Oxide/uMod plugins not loading after a Rust update? The usual causes and the quick fix.
Read fix