How to retain userstatus after unexpected closing of browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinaypratap
    New Member
    • Apr 2010
    • 5

    How to retain userstatus after unexpected closing of browser

    I am working on an application that is for online examination,
    I need to maintain exam info such that if unexpected closing of browser such as power failure etc, the exam will restart for the user from same last position.

    I tried to do it through session state mode sqlserver but problem is what if after closing system without clearing session if some another user want to give exam from same machine?

    is there any other mechanism to do this please help?
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Originally posted by vinaypratap
    hello sir,

    I am working on an application that is for online examination,
    I need to maintain exam info such that if unexpected closing of browser such as power failure etc, the exam will restart for the user from same last position.

    I tried to do it through session state mode sqlserver but problem is what if after closing system without clearing session if some another user want to give exam from same machine?

    is there any other mechanism to do this please help?

    Thanks
    You need on to save the user state on Session_End method..
    (i hope so its correct)....

    save it in the database... and... when the user logs in again ...check if there are pending entries in some table and fetch the details from that pending table and continue the exam

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Usually exams are time based.
      A user has X hours to complete the exam and that's it.

      If you implement this people will be able to view the exam (print it even)...unplug the computer....and then return to the exam at a later time (possibly with all the answers written out).

      Are you sure you want to implement this solution?

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        Originally posted by vinaypratap
        hello sir,

        I am working on an application that is for online examination,
        I need to maintain exam info such that if unexpected closing of browser such as power failure etc, the exam will restart for the user from same last position.

        I tried to do it through session state mode sqlserver but problem is what if after closing system without clearing session if some another user want to give exam from same machine?

        is there any other mechanism to do this please help?

        Thanks
        Is this for a real purpose? or are you building some school project? practicing a bit?
        I think you should refer to what Frinavale has recommended.
        Last edited by Niheel; May 21 '10, 06:33 AM. Reason: spelling, punctuation

        Comment

        • semomaniz
          Recognized Expert New Member
          • Oct 2007
          • 210

          #5
          This is what i would do. create a field in database stating the status of the exam, This field will be updated every time an answer is saved. Once the exam is done students need to submit the exam assuming by pressing a button. This is where the status of the exam is changed to complete.

          Dont know if this is the right approach, its just a thought.

          Comment

          Working...