If you ever get disconnected (for whatever reason) the game doesn't log you out straight away, probably as an anticheat mechanishm to discourage people from logging out whilst in a bad combat situation. I'm unsure of the exact time you stay logged in, which may be dependent on whatever you were doing at the time, but it seems to usually be between 5 and 10 minutes before it logs you out and you can log back in.