adam84 Posted September 22, 2010 Share Posted September 22, 2010 I have a site where a user logs in and can buy something. They click a link and the page goto to paypal to preform the transaction, after the transaction has been approved, they get redirected back to my site (Paypal sends the information back through GET). On the page where they get redirected, I preform some database work to store some information that was sent back to me from paypal, just to log what they bought and other information like that. Where I get a little confused is after that page runs, they move onto the next page, but if they click the back button, I dont want the information to repeat itself again in the database. I am not sure what to do to prevent this from happening. Is there a special practice or idea stopping this from happening..? Thanks for your help. Quote Link to comment Share on other sites More sharing options...
litebearer Posted September 22, 2010 Share Posted September 22, 2010 start sessions check to see if a special session variable is set if it IS set redirect to another page if it is NOT set - set the variable and process the data Quote Link to comment Share on other sites More sharing options...
adam84 Posted September 22, 2010 Author Share Posted September 22, 2010 Awesome Thanks!!! Quote Link to comment 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.