Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have hosted an online test application with a 1 sec timer that will ensure Auto submition of the form at the end of the test even if the user has'nt completed the test.

The application works perfectly when the test is attempted quickly , after 15 min the app starts going slower and slower that even the page do not scroll.

although It does not affect any parellel user.

Please help.
Posted

1 solution

Without seeing the code it is impossible to say what is wrong exactly, but probably the loop you must have is possibly using increasing amounts of the browser's resources.

You can remove the loop which should remove the problem, javaScript has a setTimeout method (see[^]). You set the timer and a callback function is called when the timeout happens, you should set the timeout to 15 minutes.

Finally, I doubt what you want can be acheived with total reliability. The user will probably be able to circumvent the 15-mins auto-submission, so you should keep timestamps on the backing store at the very least.
 
Share this answer
 

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