After serious thinking saurabh kumar manis wrote :
> I have this textbox that I use to display a countdown timer, starting from
> 90:00, which is 90 minutes. The problem is that when the user clicks on the
> REFRESH button of the browser, the timer refreshes itself and restarts from
> 90 minutes. How can I prevent that from happening and make the counter just
> continue on ?
>
>
> From
> http://www.google.co.in/search?hl=en...G=Search&meta=
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com/g/
You have to store the required endtime somewhere. On a (re)start of the
page, check that store. If it is present, calculate the current time
from there. If it isn't there, create it with the 90 minute timeout.
For a client-side solution, you would use a cookie.
A server-side solution usually would use Session to store something
like this, but those sessions usually time out after 20 minutes of
inactivity!
Hans Kesting