Well the countdown has the set timeout. When the page is refreshed, the set timeout always start from beginning. i need to get the time when the page is refreshed, so i can have the elapsed time.
Thenthe new set timeout = the previous set timeout - elapsed time.
But actually, i found some way to do this using session instead of cookies. Though it needs some modification on the javascript.