In my MVC asp.net quiz application, users are given a variable amount of time to complete the quiz. Once this time runs out, their answers will be automatically submitted.
As of now, I have set up a timer in Javascript with the duration stored in the Controller's Session["EndTime"]
. However, there is a concern that users may tamper with the Javascript code and manipulate the timer. Is there a way to initiate the timer in the Controller and trigger an Action once it expires?