[eluser]WanWizard[/eluser]
Not reliably.
You can set up some javascript that is triggered when the window or tab is closed, and would request "http://yourapp/logout", but it will not work in all cases, and it's easily blocked.
It is better to have sessions expire at browser close, and after a relative short time of inactivity.