Keep the time the student spent of quiz before reload or leave the page

when I use the timer feature when creating a quiz I have noticed that it will reset itself if the browser is refreshed or if a student leaves the quiz and returns. I want to know is there a way to keep that from happening.