Infinio Labs

Exam delivery

Server-Timed Exams: Why the Clock Should Never Run in the Browser

One authoritative clock on the server, a countdown students can trust, and clear options for what happens when someone goes offline. How exam timing works in Pragyan.

Pragyan exam screen on a laptop and a phone showing the remaining time and the question palette

Ask any coaching head what ruins a exam result: it is rarely the questions. It is the arguments afterwards. "My timer froze." "My laptop went to sleep." "He got ten extra minutes." When the clock lives in the browser, every one of those claims is hard to settle. In Pragyan the clock lives on the server, and this article explains exactly how that works, what you can configure, and where its limits are.

The problem with a clock in the browser

A countdown that exists only in the page is easy to disturb. Closing the lid, refreshing the tab or changing the device clock can all move it. None of that is cheating in the usual sense, but it makes time unequal between students, and a rank list is only fair if everyone had the same time.

The fix is not a smarter timer in the page. It is to stop treating the page as the authority.

How Pragyan decides when time is up

When a student starts an attempt, the server works out the end time and stores it: the start time plus the exam duration. If you gave a batch its own duration, that override is used instead. If the batch's exam window closes earlier than that, the earlier time wins, so a student who starts late in the window gets the time that is left, not a fresh full duration.

The countdown in the top right of the exam screen is a display. It counts down to the stored end time, using an offset from the server's clock, so a wrong device clock does not change what the student sees or when the exam closes. The server also re-checks the deadline on every request, whatever the screen shows.

Students are told this before they begin. The instructions page says in plain words that the clock is set at the server, that the countdown shows the time remaining, and that the exam ends by itself when it reaches zero.

Pragyan exam screen on a laptop with the remaining time at the top right, and the same exam on a phone
The exam screen: remaining time at the top right, section tabs, the question palette and the action bar. The phone shows the same attempt.

What happens at zero

When the end time passes, the attempt is closed and scored from the answers the server had accepted before the deadline. A sweep inside the application checks for expired attempts every minute and submits them, so a student who has walked away, or whose device has died, does not leave an attempt hanging forever. A protected endpoint can also trigger the same sweep from outside as a safety net.

In your results, the share of attempts that ended this way is shown as "Auto-submitted", so you can see at a glance how many students ran the clock out.

Two ways to treat time when a student is away

Institutes disagree about this, and rightly so, so Pragyan makes it a setting on each exam instead of a fixed rule.

By default the clock keeps running while a student is disconnected, which is how a real exam hall behaves. If you switch on "Pause when away", the clock stops while the student's device is not reporting in, and resumes when it does, never beyond the end of the batch's exam window. "Resumable" is a separate switch that decides whether a student who closes the exam can come back to the same attempt.

  • Keep the default for a high-stakes, ranked exam: everyone shares the same elapsed time.
  • Consider "Pause when away" for practice tests and unstable networks, where fairness to the individual matters more than a strict shared clock.
  • Duration and maximum attempts can also be overridden per batch when you assign the exam.
The Create New Exam dialog in Pragyan showing duration, maximum attempts, batch allocations and the options Randomize Questions, Randomize Options, Show Result, Resumable and Pause when away
Timing is set where you create the exam: duration, attempts, a start and end time per batch, and the Resumable and Pause when away switches.

Section limits and shared-time groups

Some papers are timed by section. Each section can have its own time limit. For papers where students may move freely among several sections but share one limit, sections can be placed in a shared-time group: the group has one limit, students can switch between its members as they like, and can leave the group only once the shared time has run out.

The Edit Section dialog showing section name, shared time group, time limit, marks, negative marks, partial marks and marking scheme
Section settings: a time limit or a shared-time group, marks, negative marks and an optional marking scheme.

When something goes wrong

Exceptions happen: a power cut in the centre, a student locked out by mistake. Because time is a server decision, fixing it is also a server decision, made by a person with the right role and not a workaround on the student's device.

From the live session page, an administrator can submit an active attempt now, reopen an expired or abandoned attempt that has not been scored yet, with a number of extra minutes you choose (up to 24 hours, never beyond the batch's exam window, and only while that window is still open), or grant a student a new attempt when their attempt limit is used up. Each of these asks for confirmation first. Once an expired attempt has been scored it cannot be reopened, and a new attempt is the remedy.

Pragyan live session detail page showing a stale session warning with Force Submit and Discard Session buttons, session information and the question status overview
A session detail page: the time remaining, the last heartbeat, the question-by-question status and the actions an administrator can take.

What this does not do

Frequently asked questions

Can a student change the device clock to get more time?

No. The end time is calculated and stored on the server, and the server checks it on every request. The countdown on screen is only a display.

What if a student's laptop goes to sleep during the exam?

By default the clock keeps running, as it would in an exam hall. If the exam has Pause when away switched on, the clock stops while the device is not reporting in. Either way, an administrator may be able to reopen an expired attempt that has not been scored yet, with extra minutes, while the batch's exam window is open.

Can different batches get different durations for the same exam?

Yes. When you assign an exam to a batch you can override the duration and the maximum attempts for that batch, and set its start and end time.

What happens if a student starts late?

The end time is capped by the end of the batch's exam window, so a student who starts late gets the time that is left in the window, not the full duration.

Pragyan Online Exam

See a real exam run on Pragyan

Try the live demo as a student or explore it as a read-only admin in under a minute. No payment, no card.

Explore Pragyan