sk121506 Posted March 19, 2008 Share Posted March 19, 2008 I have a script that thanks the user for their purchase from paypal on my own site after they complete a transaction. However, the user can refresh the page and since i am loading data into a database randomly, they get inserted again randomly. Anyway to get around this? I know paypal somehow has a 5-time page refresh limit of the url and then it stops the paypal script from running, not sure how to change it though. Link to comment https://forums.phpfreaks.com/topic/97004-restricting-page-refresh/ Share on other sites More sharing options...
teng84 Posted March 19, 2008 Share Posted March 19, 2008 you should remove the post data after processing so even if the user hit refresh it wont carry those data in your db. You have to use header to redirect eg... if(success condition here){ header('location: pagehere.php'); } Link to comment https://forums.phpfreaks.com/topic/97004-restricting-page-refresh/#findComment-496401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.