I stored timer value in cookie file because I want every tabs to show same timer value when one of the tab performs a postback. Let say, user open a tab (tab1) and it's counting down from 120, 119, 118, etc. If he open another tab (tab2), timer value from tab1 was not reflect or reset and continuing to 117, 116, ... while tab2 have counting down from 120, 119, etc...
With saving value in cookie, if tab2 have make any postback, cookie value was changed back to 120. Then, tab1 also have the same value 120. And counting down...
Quote:
if your page is not reloaded, you can create some javascript singleton for timer logic to be used by all tabs (for example component may raise the custom event 'out of time', and your page logic will react on it.
I don't know how to do this. Can you explain more details with sample codes?
Thanks.