My scenario:
I have a website that need to logout a user when a countdown is zero.Normally the code related to the timer will be on the master page. I have tried using the asp timer and session and it works but the problem is that the timer keeps reloading the child pages also and am unable to use drop down list on the child page due to the page frequently refreshing.
Countdown value is stored in db and if user log out before countdown is zero i need to save the remaining timeleft in db.
I was thinking of another alternatives,may be JavaScript calling the server side session to get the Countdown time(varies for every user) and sending back the time to the server once certain condition are met.
Is there a better solution? Can anyone provide some code for JavaScript version also.