The website that I created enables users to signup. When they register an account, a mail is sent to them.

In the mail, I wish to send them a link upon clicking of which enables them to login.

How can I do this?

-----

I was thinking on the following lines-

Upon user registration, generate a random query string and send it in the mail. In the users table keep a boolean variable depending upon whether the user has clicked or not (matching the querystring). How can I code the login page so as to 'read' the querystring in the browser?

I got it.

It is Request.QueryString("qs-name")

For some reason it was not working the first time I tried it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.