Online examination system-answer single questions, save data questions

there are 10 questions in the examination paper, each with a time limit of 6 seconds, and the time automatically jumps to the next question.
current idea: every time the examinee answers a question, save the data with session. When you hand in the paper, save the session value and save it to the database together.
question: whether the session value will be lost or unstable during the period.
is there any other way to save it? I"m mainly worried about concurrency.

Php
Mar.11,2021

sessionStorage stability is stable, but this requirement is not good for sessionStorage . It can be modified manually, with bug.

it's best to save it in a variable.

ps: sessionStorage is stored in the local hard disk as a file, and the variable is in memory.


I feel like I need a storage tool.
when you skip questions, you can save redis
or follow the answers directly in url

.

as the landlord said, it is hidden in the form.

skew floor: why not take all the questions out on the page, use js to control the display interval of the questions, and refresh the next question?
or use ajax to get the next question to replace the original question so that it can be done on one page without skipping the page, and there is no need to save session and redis

.

http://www.chennengit.com/

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31aba-2bdc7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31aba-2bdc7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?