idle time out not working when phone is locked

idle time out not working when phone is locked

Hi Team,
I have implemented Jquery plugin where in it redirects to a page based on the idle time out say 1 minute .
 
It works fine when I dont lock the phone but when the phone is locked for 2 minutes while I open the application keep it on iphone chrome and lock it(assuming idle time out is 1 minute) .whne i unlock it it doesnot go to the redirect page unless i refresh the screen.
is there a way to make sure that the page is redirected after we unlock and go back redirected page . 
All of my pages are static pages in one html.
 
cheers,
Vinay