Kill page execute after logout

hello guys
can you help me to solve my problem
in my app i have 2 page
1- Page For Login
2- Page For home

after Login i’m Access to homePage

in my HomePage i have a function for get lat and log using Geolocation
this.geolocation.getCurrentPosition().then((resp) => {
this.country=‘3’;
this.lat=resp.coords.latitude;
this.lng=resp.coords.longitude;
});
i used SetInterval to execute my funtion after 5min

My Problem is when i click in button logout i redirect to LoginPage
but my code in HomePage don’t stop

i want solution for kill process or clear Homepage after logout

Having the same problem here.