Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear All,

I have created one web application for Online Exam, in ASP.NET, javascript.

Using javascript & ajax I'm fetching the question and inserting the Candidate's answers for each question on-click "Next" button.

Now, the requirement is to restore the last session when the browser or PC shutdown unexpectedly.

What I have tried:

How can I get back the exam session, where I'm using javascript and ajax for "Get & Post".

Can anyone please suggest/help me.

Thanks in advance.
Posted
Updated 3-Dec-17 0:44am
v3
Comments
Kornfeld Eliyahu Peter 3-Dec-17 6:32am    
How do you manage the exam session on the server?
abdul subhan mohammed 3-Dec-17 6:37am    
using ajax, i'm fetching number of records and displaying one by one on button("Next")
click.
Afzaal Ahmad Zeeshan 3-Dec-17 9:06am    
You would need to store the session on the server-side.

Otherwise, Sessions do not exist maintained that way (the way you expect them).

1 solution

If the PC or browser shuts, you will lose the Session - which gives you just two options:
1) Use Cookies to store the info - these are stored at the Client, and can used to restore the previous position.
2) Use a server based database and store the current position there, against the user (who presumably has to log in on the server to take the test anyway).
 
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