Jump to content


Photo

Email verification


  • Please log in to reply
3 replies to this topic

#1 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 26 June 2006 - 08:05 PM

You know how when someone submits their email address for something you should send them a verification email with a code or whatever? I think I understand how that works. Something like you send them an email with a uniqid() and store that uniqid() in your db with their email and then when they verify compare the email and the uniqid(), right?
Well, then what do you do about people who never verify? How would you have the row with their email and uniqid() automatically deleted? Do people use cron jobs or something to delete them after a certain amount of time has gone by?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 26 June 2006 - 09:15 PM

that's what i do. when someone registers, i have a date_registered column with a timestamp. then i have an activated column with 0 for not activated, 1 for activated. then i have a cron job that runs every day or whatever interval seems decent for the project, and it deletes any row that the timestamp is older than x and activated = 0
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 26 June 2006 - 09:45 PM

How do you run the cron jobs? I know my host lets me set them up but I think they only let it run once a week. Is there any other way to set one up?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 26 June 2006 - 10:02 PM

[!--quoteo(post=388224:date=Jun 26 2006, 09:45 PM:name=JohnnyK)--][div class=\'quotetop\']QUOTE(JohnnyK @ Jun 26 2006, 09:45 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
How do you run the cron jobs? I know my host lets me set them up but I think they only let it run once a week. Is there any other way to set one up?
[/quote]

If you search on here there are meny other php programs that are as good as the cron job search.

you might be lucky to get a 3rd party gpl code to work in place of the one your host uses.

good luck.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users