How many minutes:seconds are passed betweek the visit and the exit?
<p>I have to develop a very small JS script that saves the time spent between "entry" and "exit" on a page. This script has to monitor the user when he</p>

<p>"enters on the page"</p>

<p>and when</p>

<p>"he exits." (read "exit" as closing the page or closing the browser)</p>

<p>Is it possible? I can use:</p>

<p><code>www.example.com/enter.php</code> (requested when the user enters the page)</p>

<p>and  </p>

<p><code>www.example.com/exit.php</code> (requested when the users exits the page)</p>

<p>I have to save data to calculate how many <code>minutes:seconds</code> pass for each unique visit. (like Google Analitycs).</p>
