I have session timers in my application which logs a user out automatically after a certain time limit.
I utilise various ionic generated alerts, modals etc in the application.
When a user is automatically logged out and they have been idle for some time, if there are dialogues which have not been closed by the user they remain on screen after the suer has been logged out.
Is there a way in ionic to close any open instances of dialogues? Or should I just use a pub/sub event to those controllers with dialogues to close them on logout?