i have created a login script, and now i want to display how long the user has left logged in. i can do this so it is static, so it displays a time when the page loads, but it requires a reload to update the time, what is the best way to do this so i wouldnt have to refresh the page??
Javascript. Build a javascript timer function and then every time the page is reloaded update the coutdown time to the one held on the server. Sould be accurate to within however long it takes to load the page. HTH Rob
the best thing to do is create a table with two columns, one with the user id, the other with the time.
then update the table with a little math as the user re-visits, .. that is how i do it.