Click here to Skip to main content
15,996,429 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
how to fix time duration in online examination system by admin while taking exam.this time duration varying according to different exams.
Posted
Updated 5-Aug-10 21:40pm
v3
Comments
Toli Cuturicu 6-Aug-10 3:44am    
Reason for my vote of 1
Beg your pardon...

You're going to need a database table called something like 'exams'. In the below, duration is in seconds

exam_id description duration
1 Easy Exam 1800
2 Hard Exam 900

When the user starts an exam, retrieve this from the table. Note the time they started in the session + you'd probably want to store in script as well so you can offer some client-side functionality

Warn user on client when running out of time

Reject posts to server when user has exceeded exam duration
 
Share this answer
 
By storing the time the exam started and checking when they finish. How else could it work ?
 
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