I have one page with 5 sub pages (each one has a different page link) what I am trying to do is create a timer to count how many seconds a user spend on a phone call.
for example
main.php << the landing page
tab1.php << additional tab
tab2.php << additional tab
tab3.php << additional tab
tab4.php << additional tab
the first time around the use clicks on the landing page "main.php" here I need to start a counter and if the user click on tab 1, tab2, tab3 or tab 4 I want the timer to still count the seconds that the user spend on those page.
I have used a jQuery plugin called "runner" http://plugins.jquery.com/runner/ to have a counter on my page but when the user switch to a different tab the counter is reset. My only problem is how can I create a counter that carries the value to the other tabs without losing the counter.
Question Summery The core of my question is how to build a live counter in cookies? so that the cookie value will be incremented by 1 every second. the it will not stop until I clear the cookie in a different page.
I am using PHP to do the rest of the code
I appreciate your help.