The problem could be that your browser cache is still trying to use the DNS info it knows to access sites, instead of loading the Wi-Fi login page. And sometimes you can break it out of that loop by visiting something new. You could clear your browser cache, but that's annoying, and you'd have to log back in to everything.