Page 1 of 1

TIMER FOR QUIZ FOR MULTIPLE PAGES

Posted: Mon Mar 13, 2017 2:08 am
by newbaba
Hi, just a little help needed can a php session be created with timer i just want to ask i want a timer that starts from page1 and on the page 2 it starts from the same time value where it closed on page 1
total time 30 minutes
on page 1 time consumed 5 minutes
the timer starts on page 2 at 25minute
and so forth
if the time lapses means it reaches 30 minutes it redirects or closes the page

how can i achieve the above result by using php sessions or java scripts

thanks in advance

Re: TIMER FOR QUIZ FOR MULTIPLE PAGES

Posted: Mon Mar 13, 2017 6:17 am
by Celauran
You could set up the timer client side and store it in cookies or local storage. Alternately, you could start it server side, grab it on the client on each page load, and then handle it client side.