You are assuming smooth execution. What happens if the browser is closed when taking the exam? What happens when the user refreshes the page? You need to maintain the user state as well as the time of the examination in the user session. Keep the involvement of Javascript in business logic to its minimum.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
Offline 8,873 posts
since Jun 2006