tags:

views:

48

answers:

1

Hi,

I am stuck with count down in ajax, I have a small website where I ask each user 5 question in 1 min time, after they login using asp.net membership provider. I want when the user time is over he/she must be taken to result page and show the result, I am using asp.net ajax timer, but if the user press F5 his time start again and by pressing F5 he can continue his test.

how can I stop that. also is there a easy way to show countdown using Ajax for 60sec

Regards Arshad

+1  A: 

Anything client side is potentially hackable, so you can't effectively maintain a time limit using only client-side technologies. When they begin a test, keep a DateTime in their Session to indicate that a test has been begun. If the submission comes in after more than the time limit has elapsed based on the server time, then tell them to try again cause they cheated.

jkohlhepp