> The problem is that if somebody refreshes the page while taking the test,
> the timer is reset back to the initial value. It is thus possible for a
> person to take much longer than the stipulated time to complete the
> assessment.

If you're open to using cookies, you could set one that includes a list of
the current page, and a timestamp for when it was FIRST loaded.  Subsequent
page loads would check to see if the ID was the same, if so not update the
cookie, and if not reset the timestamp.  Cookie value could be encrypted
before sending to client for security.

I'm not a JavaScript expert, but I believe it would be possible for JS to
read the cookie and reset the counter value based on that.  However, it
would be more difficult to obscure the contents of the data if CF and JS
both need to read it.

On the page that handles the page submission, check the value of the cookie
to make sure the time diff is not greater than a certain value.  If it is,
the answer could be thrown out or otherwise handled properly.

I hope these ideas will help you, or maybe someone else doing something
similar.

-Justin Scott, Lead Developer
 Sceiron Internet Services, Inc.
 http://www.sceiron.com


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to