John Lark wrote:
when they navigate away from the site
Did you mean navigating to some other public website?
You can try using a filter which can check the current url and clears the session. But it may not work as desired if you are embedding css/js from other sites, eg. jquery link