I've looked in several places, but the settings I found do not work, how can I log out the User as soon as he closed the browser?
I guess it can be done via setting cookie lifetime set to 0 from magento admin.
System -> Configuration -> Web Tab ->Session Cookie management->Cookie Lifetime