How to detect when a session ends
<p>Is there a way to detect when someone leaves your site? So far I know about using <code>ignore_user_abort()</code> but thats about as far as I've gotten.</p>

<p>The reason I need to know this is because I need a script to execute upon someone leaving the site.</p>
