Focus management after a session dialog is closed

In 5 seconds a dialog will a appear. After the user closes it focus will return to the last focused element or the logo, depending on whether or not the user tabs to the button before the dialog is opened. Reload the page to restart this example.

session is ending

Testing