Welcome Guest, Not a member yet? Register   Sign In
Double Opt-in
#1

[eluser]KJTED[/eluser]
I was wondering if anyone has created a double opt-in subscription functionality using Code Igniter that might be able to lend me some helpful hints and tips?

Cheers.
#2

[eluser]thurting[/eluser]
i haven't done it with code igniter but here are the steps you would take:

1. A subscription form that enters user info into db - set status to 0
2. Send an email to user asking them to confirm subscription - include confirmation link - this link should be private - I suggest creating a user signature that is a hash - maybe users email + a salt - so the link would look like domain/subscription/confirm/signature
3. Confirmation page - when a user lands here the db is checked for the signature and user is confirmed - set status to 1
4. When you mail out only send to users where status=1

Your basic user schema would look something like this:

id
email
status
signature

This is just one way to do it. There are many others.




Theme © iAndrew 2016 - Forum software by © MyBB