OnApplicationResume How to Request user to login when session is expired

OnApplicationResume How to Request user to login when session is expired

  

Hi,

How can I on the OnApplicationResume client action redirect the user to the login screen when the session is expired without having to click on something? 

Thanks,

JP

Hi João,

You can redirect using the Navigation JS API, and providing the url for the login screen.

Check out the documentation: https://success.outsystems.com/Documentation/10/Reference/OutSystems_APIs/JavaScript_API/Navigation

Hi João,

I've try to use the method $public.Navigation.navigateTo("/AppName/Login") but when used on the OnApplicationResume action does not work. Nothing happens.

And by the way how can I check if session is expired before doing the redirect?

Thanks,

JP