Multisite logout

I want sites to logout when browser tab is closed. Currently using a logout button forces user to reenter name and password. If the browser tab is closed, the user is still logged on.