GingerNutter
03-13-2003, 01:23 PM
I'm trying to create a logout script that only logs out the user if they stop using the site for a certain amount of time.
what I have at the moment works but only once I can't seem to refresh the timeout on the lower frame.
How would I go about resetting the timer every time a page is loaded in the main frame (name="rbottom")?
Whenever a page is loaded into the main from at the top of the page is this parent.frames['sessiontimer'].window.setTimeout('CountDown()',1000);
It only seems to work once and not every time that page is loaded (to refresh the timer).
Any Ideas??
Thanks in advance.
Loads-a-Luv
Jonathan
P.S I have attached the code i have been working on, its nothing special - just a testing.
what I have at the moment works but only once I can't seem to refresh the timeout on the lower frame.
How would I go about resetting the timer every time a page is loaded in the main frame (name="rbottom")?
Whenever a page is loaded into the main from at the top of the page is this parent.frames['sessiontimer'].window.setTimeout('CountDown()',1000);
It only seems to work once and not every time that page is loaded (to refresh the timer).
Any Ideas??
Thanks in advance.
Loads-a-Luv
Jonathan
P.S I have attached the code i have been working on, its nothing special - just a testing.