The game should autosave at the end of every day and at the end of every farm. Are you possibly deleting your browser cache, or playing in a private browser tab? The web version saves the game using Unity's PlayerPrefs, which gets stored in the browser cache.