[eluser]alvaroeesti[/eluser]
UPDATE
I think it is much more complicated than this. It involves cURL library coding to re-check with the paypal site that a payment has actually been made.
Hello
I have written a registration page, but I want that users can only access that page after having registered (paid actually) in Paypal. I have read in the paypal docs that this is the way it works. Once you have completed your payment at Paypal, they let you redirect to a page of your choice. Alright,my registration is my page of choice but how can you prevent that there is no other way to access it but that?
Starting a function by _ makes it private and makes the page not accessible by typing directly the URL in the http box, but...I dont think this is what helps here, because if the Paypal redirection should work, any redirection from other page would. The only thing that should work is a session based stuff or something like that, like
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
but how can I make it work for something that comes from outside my internal pages?
thank you