You can't do it in every case.
If the user has Javascript enabled, you could make a Javascript function called in the onunload event for the page, which creates an XmlHTTPRequest object sending a message to the server to instruct it to clear her session.
Mark