I am working on an Online Exam project for knowledge only . There may be a case of a power failure, and when the candidate logs in again, it is necessary to spend the time spent on a power failure. But in my code, the javascriptexam ends after the exact 2 hours corresponding to server time (used here AJAX). After the time, the student is redirected to the home page. I thought of a solution, but I do not find it to be implemented.
Since the session is supported, so I can maintain the time that it used 2 hours and can be stored in database. when he rewrites that a certain line that matches him can be checked, and the time can be updated.
But I can’t realize it. Please tell me if there is another solution or direction in which I think is right or wrong.
Examination resumes from the beginning of 2 hours. It does not resume from the time that was ticking when there was a power failure. The same thing happens if a power failure occurs, or the candidate returns again in this case at least. And I am not asking for any code for this problem. I just want a hint or direction in which I can think. I just want to know what the concept of this might be.