Activate account by link in e-mail

G

gorden blom

Hello,

I'm working on a school project about asp.net and I have a question
about an activation link in an E-mail. I created a form at witch new
users can subscribe. This form add the new user to an Access database
and an E-mail is sent to the e-mail adress the new user entered. This
link should set a boolean value(active) to true so the new user can
start using his account.

Can anyone tell me how to create a link like this, or can anyone give
me an example for this kind of problem? The only thing what the link
should do is update an existing record in the database so the user can
start using his account.

Thanks in advance,

Gorden Blom
 
W

Wim Hollebrandse

When someone subscribes - you simply generate a unique identifier, using
static NewGuid() method on the Guid class.

You insert this Activation Guid into the database against this user. Also,
you set some Active field to 0 by default.

Also - you use this Guid in the link in the e-mail and when this is
clicked - you update the record for this activation Guid and set it's active
flag to 1.

Hope that gives you an idea of the process.

Cheers,
Wim Hollebrandse
http://www.wimdows.com
http://www.wimdows.net
 
G

gorden blom

Thank you for helping me! Now I know where I'm looking for, this
should be a lot easier.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top