Game Servers

Fix Minecraft "Failed to Login: Invalid Session"

Failed to login: Invalid sessionBad loginInvalid session (try restarting your game)
5 min read Updated 12 June 2026 ESAGAMES Team

"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)
Why keep online-mode on

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.

Secure, easy Minecraft hosting

Our Minecraft hosting runs online-mode with whitelist controls and one-click setup, protected in Frankfurt.

Minecraft hosting
FAQ

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.

Knowledge base

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.

Payments Secure checkout with cards, banking apps and digital wallets.

Choose the payment flow that fits your stack and region without leaving the platform.

Pay by Zen Visa Mastercard Paysafecard PaysafeCash Skrill Trustly Bancontact UnionPay iDeal WebMoney