I have the questions with correct answers stored in the database. Currently, we support only two types of questions: True/False and MCQ. I load the questions in the Page Load event, then assign items to labels and radio buttons and tried assigning correct answers to variables so to use them in marking but I faced the situation where all the results are Zeros.
Why? coz the correct answers change with page post back, so I immediately thought about storing the correct answers as session variables, and it worked perfectly with me. Till a situation took place with one of the students while he was attending the assessment. He exceeded the Session Time. The page did not expire till he submitted the answers and the CheckAnswers functions started to read the session variables!! Ooooooops! There are no session variables coz session timed out.
Two things:
By the way, I know that default Session Timeout is 20 minutes so I did not see this exception coming, but after this experience I can tell: Do not expect server administrators to be leaving default settings as it is, ask my server administrator and he will assure you this tip ;)
Why? coz the correct answers change with page post back, so I immediately thought about storing the correct answers as session variables, and it worked perfectly with me. Till a situation took place with one of the students while he was attending the assessment. He exceeded the Session Time. The page did not expire till he submitted the answers and the CheckAnswers functions started to read the session variables!! Ooooooops! There are no session variables coz session timed out.
Two things:
- I shall edit the Web.config file 'debug' section, coz I don't wanna students to see error details
- I shall add an exception handler for the Session Timeout Exception
- Actually, I shall add timer to the assessment. Assessment shall not be left open the way it is now (though it is not anymore coz I figured out the session timeout scenario and notified students that they shall finish the assessment within 5 minutes, and thankfully it is going well), but I can not depend on this. AMS must upgrade
By the way, I know that default Session Timeout is 20 minutes so I did not see this exception coming, but after this experience I can tell: Do not expect server administrators to be leaving default settings as it is, ask my server administrator and he will assure you this tip ;)
No comments:
Post a Comment