Since I added a timer to the attempt.php page, there was a possibility that attempt would close when the user is still on the first question and then the page goes to the attemptfinished.php file
But it shows me an error because the variable uattid is a required variable and it gets reset.
The error is:
This is not your attempt at the activity
I want to arrange that already in the first question the variable will be updated and not reset and will not be updated only after pressing the button for the next question.
how do I do it? And where do I see in the code when the variable gets its value.