let the user to save the page on your server. e.g. when user clicks save, your script will get the data and save it in a file on your server.
then you can use cron to remove any pages that are 24 hours old. or if you dont have cron, then the script that saves the file on the server, first should check whether there is any 24 hour old file on the server, if there is then delete it.