0

I have the following issue: when a user Sign up on my site I want to send him a mail containing a link. In order to activate his account, the user has to check that link.
The link should be accessible only once.

How is that possible? What mechanism do I have?

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by tiggsy
1

First generate a key. Since you want this to be unique, you can base it on, say the username and the current Universal date, encrypted with your fave encryption method. Store it in a "to be confirmed" list along with the information about user name, password, email, so on. Then send the link to the confirmation page with ?code=<thegeneratedkey>. That page should look it up in the to be confirmed list, pick up all the data stored there and add them to the members list, delete the entry in the to be confirmed list and do whatever else you want it to do.

Is this clear, or do you want chapter and verse?

0

First generate a key. Since you want this to be unique, you can base it on, say the username and the current Universal date, encrypted with your fave encryption method. Store it in a "to be confirmed" list along with the information about user name, password, email, so on. Then send the link to the confirmation page with ?code=<thegeneratedkey>. That page should look it up in the to be confirmed list, pick up all the data stored there and add them to the members list, delete the entry in the to be confirmed list and do whatever else you want it to do.

Is this clear, or do you want chapter and verse?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.