I have a simple block that displays the login and register links for anonymous users and the username with a logout link for logged in users. When I click on login, the modal form works great. However, when the modal closes, the page is not refreshed so it is difficult to tell if the user actually logged in or not. What I would like to do is have the page refresh upon successful login, or even better just the one block so it will show "Welcome, User (logout)" instead of the Login / Register links after the modal closes.
Anyone have any ideas how this can be achieved?