For example:
I have a game of clicking in objects, so there are variables like
openDoor = true;
openChest = false;
When user close window and restart the game I have to return him/her with his/her progress.
What should I do?
Study Text file? Save on Database?
Put some code in somewhere to save the status?