I want to create a session on a server backend for Joomla PHP and a Javascript quiz module, that are used from an Android application.
Even if the Android application closes unexpectedly, that session should be available again on a subsequent load of the application.
What’s the best way someone can suggest for this?
I’d suggest storing the PHP Session cookies on disk if you are going to use
$_SESSIONin PHP. Otherwise, you should look into cookies that you can manually set the expiry time on and keep them stored on disk inCache/That will store the current progress of the application in the session cookie, but without a login (or code from you) there’s not that much more i can say.
To access from another browser/device you would need a login to identify the user and provide them with a valid session.