Forums

ASP

This topic is locked

Session Timeout property

Posted 12 Jul 2003 12:50:19
1
has voted
12 Jul 2003 12:50:19 durdana ghazi posted:
I am developing an ASP page for a quiz. I want to add timeout property. If a person give anwser to the quiz it will allowed to solve the quiz in x time say 1 minute and after 1 minute he/she may not be allowed to send the quiz. How can i do this? Please give me example code in ASP. Thank you!

Replies

Replied 13 Jul 2003 11:04:51
13 Jul 2003 11:04:51 shane anderson replied:
try

<script language="JavaScript">
<!-- Begin
redirTime = "60000";
redirURL = "timeout.asp";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
// End -->
</script>

<body onLoad="redirTimer()">

Reply to this topic