I’ve been through the forum and tried this post (http://stackoverflow.com/questions/7128417/stop-javascript-auto-refresh-after-fix-time-for-example-1-min).
I’m busy with a testing site. Different tests has different time limits, eg test A = 3600 and test B = 2400 which is stored in a table. When the test is started the time is stored in a variable. What I am trying to achieve is that the page needs to refresh after 3600 or 2400 depending on the test or run a script that checks if the time has expired and log the user out.
Can someone point me in the right direction? Currently I am using
<head>
<meta http-equiv="refresh" content="3600">
which works but how do I change it for test B then?
If you’re calculating the time until the refresh in php, using a
<meta>tag to simulate an http header seems a bit weird to me. Just send the header straight away: