I currently have two Minecraft accounts and both can login but when I try to go on a server it says "Invalid Session/Try Restarting Minecraft".
I closed Minecraft through task manager and restarted it but the problem continued. I tried uninstalling and reinstalling but that didn't work either. I should note that when I open the launcher it says "failed to refresh login, please login again". I recently changed one of the emails that was linked to one of the accounts, however, I don't think that is the problem because the other one doesn't work when going onto a server either. Any help would be appreciated!
(I also took out the mods I had in the mods folder other than optifine)