I'm making an application with PHP and a lot of Javascript. Basically the user is gonna use the application in the browser (all the javascript makes the functionanity here) without any internet for many hours.
During the usage, there will be inputs and data created. Later when the user has internet again, he need to be able to press a submit button and be able to send those processed data via POST to the server. I guess, then, when the user does that, the server would have forgoten the session and I'm afraid the data will be lost.
Is there any way to make the server know we are resuming a session that started hours ago so the data is not lost when it redirects to a login screen? (because the login session would have expired then)
Thank you