I would like to create an app where a user enter login details in a form to send to my server. Then once all details are correct, a session is created and user is able to view content on my server (say a page that can only be viewed if you logged in successfully), but once the user turns off Wifi or exits the app, the session is broken and user has to login again. Any ideas on how to accomplish this?
Say for example I have a PHP form implementing session based login system, how would my app connect to this?