How to fix "Failed to login: Invalid session" in Minecraft

Why Minecraft says "Failed to login: Invalid session" and how to fix it: restart the launcher, sign in again for a fresh token, the server-side online-mode check, and what to do if it keeps coming back.

  • 1:14 video
  • English captions & transcript
  • 20 October 2026

Transcript

The full narration, chapter by chapter. Click a time to play the video from there.

Intro

Getting "Failed to login: Invalid session" in Minecraft? It's almost always a stale login, and it clears in seconds. Here's how.

What it means

The error means Microsoft couldn't verify your login token. Usually, the token simply expired in the background.

Restart the launcher

First, fully close Minecraft and the launcher, not just the game window. Reopen the launcher, and let it sign you back in. Then rejoin the server.

Sign in again

Still failing? In the launcher, sign out of your Microsoft account, and sign back in. That gives you a fresh token.

Every player?

If every player gets the error at once, it's the server. Keep online mode set to true, it checks every account. Turning it off lets anyone join under any name. And on a locked-down VPS, make sure the server can reach the login servers.

Still coming back?

Keeps coming back? Turn off your VPN or proxy, add the launcher to your antivirus or firewall exceptions, and check that your computer's clock is correct. And if the Minecraft services are down, just wait.

Recap

Quick recap: restart the launcher, sign in again, and keep online mode on. More Minecraft fixes at esagames.ro.

More video tutorials

  • 1:21
    Minecraft

    How to give a Minecraft server more RAM

    Allocate more RAM to a Minecraft server and fix "OutOfMemoryError: Java heap space": the -Xmx and -Xms flags, memory on a hosted panel, how much RAM each setup needs, and when RAM is not the fix.

  • 1:51
    Minecraft

    Why can't my friends join my Minecraft server?

    The six reasons friends cannot join your Minecraft server, in the order to check them: the address, port forwarding, the firewall, the version, online mode and the whitelist, and Java vs Bedrock.

  • 1:19
    FiveM

    FiveM stuck on connecting: how to fix it

    Fix FiveM players stuck on "connecting" or a failed handshake: server or client side, UDP 30120, a resource hanging the join, clearing the FiveM cache and other checks.

Skip the troubleshooting

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