When I try to connect to servers or join up on lan worlds in Minecraft it says "Failed to Login : Invalid session (Try restarting your game)". Multiplayer used to work fine but now keeps coming up with this error. Can anybody help?
-
12Have you tried restarting your game? (had to ask)– RapitorCommented Jul 2, 2014 at 17:24
-
1Are u using a cracked launcher if you are it will automatically reject you from the game because mojang wont allow it!– user86091Commented Aug 25, 2014 at 15:11
-
2Is there any way to restart the session without reloading Minecraft? Some mod packs take tens of minutes to launch, so this would be a real help.– raksliceCommented Jan 8, 2016 at 4:49
-
2@rakslice: I just stumbled on a Forge mod called Re-Auth that supposedly does just that. I have not tried it yet but tempted to because I switch between multiple Internet connections and it's a pain to restart the client every time.– mellamokbCommented Sep 22, 2016 at 2:57
-
1I just had this issue and turning off my VPN fixed the problem when restarting minecraft and logging in and out didn't help.– user203043Commented Jan 4, 2018 at 20:08
1 Answer
Just as the error says your session ID, what you log in with, is invalid. This usually happens when you log in to your account and then have a new instance of minecraft and log in again without closing down the old one. The old session ID is invalidated as soon as the new connection is made. This will give you the error above when you attempt to log into a server as it will only have the new Session ID.
Restarting your client is the only way to get a new session ID as it will wipe out whatever it thinks the new one is and truly give you a new one. (Restart your client by quitting the game, closing and reopening the launcher, and then starting the game again)
If this problem persists, and you have already tried the possible causes (e.g. firewall, VPN), then try contacting Mojang customer support.
-
-
3Close it and start it up again.. This will happen every time you have two instances of minecraft running, the older one will always have an outdated session id.– JamesCommented Jul 3, 2014 at 20:38
-
1Great answer. Restarting the launcher in addition to Minecraft itself was the key for me, and you even put that part in bold! Thanks!– MirCommented Sep 13, 2015 at 21:20
-
3@Mir Glad to help... Its not always obvious its the launcher that actually does the login, but it is.– JamesCommented Sep 13, 2015 at 23:14
-
In my case I restarted the client too fast, so it didn't work. Closing and leaving everything closed for 30 seconds, and then starting, worked. Guessing the launcher reuses something if you're too fast about it Commented Feb 2, 2022 at 5:54