Whenever I've had that problem, two things seem to work most of the time.
1) Type in another web address in the bar and go to that page, then use the "back button", and you miraculously find that you are logged in.
2) If you are on another Settlers server, log into that, then come back here.