PHP Developers Network
http://forums.devnetwork.net/

TIMER FOR QUIZ FOR MULTIPLE PAGES
http://forums.devnetwork.net/viewtopic.php?f=19&t=143446
Page 1 of 1

Author:  newbaba [ Mon Mar 13, 2017 2:08 am ]
Post subject:  TIMER FOR QUIZ FOR MULTIPLE PAGES

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

Author:  Celauran [ Mon Mar 13, 2017 6:17 am ]
Post subject:  Re: TIMER FOR QUIZ FOR MULTIPLE PAGES

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/