How to Achieve Keep Alive Mechanism for Hybrid App

Hi all, I have been working on developing an Hybrid application and it progressed very good. But struck at keeping log in session alive till user logs out manually. I have referred many docs and websites but I couldn't able to find how to do it. Is there any solution or a way to do it. Case : The Application should remain logged in until the user manually logs out.
1 answers

I am not sure you can, but maybe it is possible.

What you could do is this: 

In this way at least the user does not have to log in manually.

I hope this helps.

btw you are aware that the hybrid technology is deprecated? There will be a point soon where you need to move to either pwa or native.