I am looking for application development in such a way that it should work whether the user has an Internet connection or not.
I am working on a mobile PHP/MySQL based application. Sometimes an Internet connection is not available at the required place. I want to keep the database in a buffer and want to update it as it gets connected with the Internet, so that the application can work without any interruptions.
Depending on how much data you need to be persistent on the client’s machine, you might be able to use cookies to save this data.
Here is a simple example of storing some information in cookies
Now, after you have set the cookie, you’ll be able to retrieve the data on other pages from the same domain.
Reference –
setcookie()