If it says "Invalid Session" somewhere, then that means that you need to close Minecraft completely (click Quit Game) and then open it again.
^^ Also if that doesn't work, I suggest restarting and or updating your Minecraft and computer. I hope this helps!!