I have done this for browser but now I am developing a hybrid app. I need authentication, I can only use html and JavaScript, since Hybrid app does not support php code. How do I do it such that when app starts it checks, if user is logged on (either via sending a status check request to server, or suggest any other way possible, if php code was possible to use i would check for some session variables and redirect based on that). If user is logged on send inside the app or else present login form. I cannot use Facebook, Google login etc in this case.
Thanks.