Ty44ler Posted November 20, 2009 Share Posted November 20, 2009 I am creating a long form that I'd like users to be able to return to. Currently I have a login system that uses mysql and sessions. I'd like to be able to save their document for 48 hours so they can return to it. Then email it at intervals of 48 and 72 hours if not completed... Here's the two option I was thinking of: MySql: Save the data into a database and setup a date created field and compare the date now to it. Use if statement to send data if over 48 or 72 hours. Sessions in PHP: Use sessions and have the session expire in 48 hours? How would I email it after a certain time period if I used sessions? Quote Link to comment https://forums.phpfreaks.com/topic/182286-solved-saving-form-for-users-to-return-to/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 20, 2009 Share Posted November 20, 2009 Use option 1. Quote Link to comment https://forums.phpfreaks.com/topic/182286-solved-saving-form-for-users-to-return-to/#findComment-961895 Share on other sites More sharing options...
Ty44ler Posted November 20, 2009 Author Share Posted November 20, 2009 If I use MySql, how would I delete all the form data once time has expired? Quote Link to comment https://forums.phpfreaks.com/topic/182286-solved-saving-form-for-users-to-return-to/#findComment-961896 Share on other sites More sharing options...
PFMaBiSmAd Posted November 20, 2009 Share Posted November 20, 2009 Either a cron job (unix/linux) or a scheduled task (Win) Quote Link to comment https://forums.phpfreaks.com/topic/182286-solved-saving-form-for-users-to-return-to/#findComment-961900 Share on other sites More sharing options...
Ty44ler Posted November 20, 2009 Author Share Posted November 20, 2009 Thank you very much! Quote Link to comment https://forums.phpfreaks.com/topic/182286-solved-saving-form-for-users-to-return-to/#findComment-961913 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.