Dimisss ModalController

I have a session expire functionality
in app.component
when session expires i need to reload the login page

I did the that functionality
But if any modal controller is opened in any page.
I can able to reload the login page but the modal controller page is still displaying above

So is there any method to close modal controller from app.component

Can you post a bit of your code of app.component and login page ?