Jump to content

How would you do this?


bigdessert

Recommended Posts

Basically i am setting up a testing site using igivetest.  I want it so that a client pays for a test.  Then gets directed to the registration page build into igivetest.  Then they can register and take the test.

If someone stumbles onto my test page i want it so that they cannot access the registration.

Basically for now i have it so that after a client pays they get redirected to a temp page that inserts a code into mysql database.  Then it only shows the registration page if that "code" is present.  After the user registers, it removes the "code" from the database.

Is this the best and safest way to prevent unpaid registrations or is there something better??

I kind of want to make it so that this is shopping cart independent as I have not decided on a cart yet.

Thanks,
Link to comment
Share on other sites

If they are only going to be using the test right after purchasing, on the purchase page you should set a $_SESSION variable and check for it.

If they purchase and use it 3 days later, I would recommend setting a cookie and checking for it.

If all else fails, generate a username/password when they purchase and have them login to access your test page. Any unprotected page will eventually get hit by the googlebot.
Link to comment
Share on other sites

They would be registering right after payment.  During registration they do create a username/password.  When they create this, they can log into the site 3 days later to take the test.  So i suppose the session would work. Do i need to store the session in a database, or is this something that is just passed on.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.