Click here to Skip to main content
15,878,970 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am developing online exam application,in that placing the count down timer it will work fine when go to next question,if will go to previous question timer will reset again starts from zero.
[no name] 18-Oct-11 10:30am    
Please clarify what your expectations are.

1 solution

Keep all the time keeping stuff on the server side is my advice to you. When an exam is started by a user a record is persistently stored on the server side (DBMS, Sessions, etc.). The webpages that make up the different questions of your exam will then query the server\website via Ajax (client side). The value returned could consist of the number of seconds (minutes, etc.) left for the exam so you can show the student/user how much time is left. As soon as that count has gone to zero the page will redirect to a page that tells the student/user the exam is over.
Another benefit of having the timing stuff on the server side is that it'll be close to impossible to cheat. If a student would somehow manage to still submit answers to questions the server side would reject them as it is known that the period of the exam has elapsed.

Best Regards,

Share this answer
chandrashekhar racharla 19-Oct-11 2:45am    
Thank you
Manfred Rudolf Bihy 19-Oct-11 4:29am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900