Hey everyone
I'm currently making a site where users are required to sign-up to use a service and I would like my site to send a confirmation e-mail the user and when they click the link in the e-mail it confirms the registration.
2 Main questions:
1. What is stored in the database throughout this process? just some sort of state for the user account which is changed when the confirmation link is visited?
2. Is the random set of characters that appear in the link just a hash key of some information of the user? Only problem i have with this is there must be the odd case where there could be a hash key which applies to 2 users, so how is this avoided?
Just wondered if anyone had any insight to this sort of thing??
Cheers
I'm currently making a site where users are required to sign-up to use a service and I would like my site to send a confirmation e-mail the user and when they click the link in the e-mail it confirms the registration.
2 Main questions:
1. What is stored in the database throughout this process? just some sort of state for the user account which is changed when the confirmation link is visited?
2. Is the random set of characters that appear in the link just a hash key of some information of the user? Only problem i have with this is there must be the odd case where there could be a hash key which applies to 2 users, so how is this avoided?
Just wondered if anyone had any insight to this sort of thing??
Cheers