Tutorial :How to limit the duration time to finish an exam in my site


i want to limit time of exam in the site , after the time is finish , alert popup window with message and redirect the user to another page.

the exam contain some pages , the user can turn pages forward and backwards. i want to prevent (how much i possible) to lie.


When they begin the exam, store the time on the server side. For every page they load, start a timer for however much time is left.


I'd say that ensuring only a fixed time window is available to provide input data should be controlled in the backend application, not on the browser.

The browser can be manipulated by the user, the backend application can be controlled much more effectively.

You might want to provide more information about the technology stack and contraints you're working under to get more specific answers.


The alert can be done with a SetTimeOut in the page. However keeping track of the total time should be done based on the first 'start' of the exam, and should be done serverside. Give each user their own personal account and keep track of their progress serverside.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »