473,416 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

How is this usually done?

Hi,

When I subscribe a web site I usually receive an email to confirm my
subscription. Only after I follow the link in the email my account gets
activated.

In general, how is this done? Can you give me an idea?

(I am not asking for code.
I just need to have an idea of how this is usually done.)

Thanks,
Miguel

Nov 19 '05 #1
3 1367
I would assume that there is some flag in the database that determines where
the account has been activated. When the user follows the link, the flag is
set to true, and the login code succeeds in checking that this flag is true.

As for the random URL, all you need is to create a url to a page that has a
query string parameter that is a GUID and another that is the username.
Store the GUID in another field in the user account row. The page should
read the 2 query string parameters and make sure they match in the
database - and set the flag described above to true.

At least this is the first plan that comes to mind without ever having
actually written something like this. I don't think there is one standard
way that this has to be done.

"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:uM****************@TK2MSFTNGP10.phx.gbl...
Hi,

When I subscribe a web site I usually receive an email to confirm my
subscription. Only after I follow the link in the email my account gets
activated.

In general, how is this done? Can you give me an idea?

(I am not asking for code.
I just need to have an idea of how this is usually done.)

Thanks,
Miguel

Nov 19 '05 #2
Hi Miguel,

You'll notice that when you subscribe to a web site, that the email you
receive has a hyperlink in it. The hyperlink has a QueryString added to it,
which contains parameters identifying who you are (usually some form of
userid), and possibly some additional parameters as well. The link is
generated when the email is created, when you sign up for the web site. The
form handler for the submission form enters your information into a
database, and uses the ID from the database to construct an HTML email that
contains the link.

The link itself leads to another active page that reads the QueryString, and
updates your information in the database, verifying that the email address
you gave was correct. If it was not a valid email, you would not receive the
link, and could not click the link to activate your membership.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Miguel Dias Moura" <md*REMOVE*moura@*NOSPAM*gmail.com> wrote in message
news:uM****************@TK2MSFTNGP10.phx.gbl...
Hi,

When I subscribe a web site I usually receive an email to confirm my
subscription. Only after I follow the link in the email my account gets
activated.

In general, how is this done? Can you give me an idea?

(I am not asking for code.
I just need to have an idea of how this is usually done.)

Thanks,
Miguel

Nov 19 '05 #3
In addition to Miguel question, I'd like to add, how do you actually
send the email ?
I mean, what component/class do you use to send the mail from inside an
asp.net application ?

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

52
by: Vladimir Grul | last post by:
Hello, I have a class member function declared as class some_class { .... virtual int call(void); }; Can I use this-> inside the function body?
22
by: Robert Brown | last post by:
suppose I have the following table: CREATE TABLE (int level, color varchar, length int, width int, height int) It has the following rows 1, "RED", 8, 10, 12 2, NULL, NULL, NULL, 20...
20
by: titi | last post by:
Question The road and traffic authority for a small country currently uses a system to store information about all 'currently' licensed drivers. A licensed driver has the following info stored...
24
by: Gaijinco | last post by:
I found one of that problems all of us have solve when they begin programming: given 3 numbers print the greater and the lesser one of the set. I was trying to remember the if-then-else...
12
by: Jim Langston | last post by:
I have a template I call StrmConvert, which uses std::stringstream to convert from any type to any other type that can be used by stringstring. This is what it looks like: template<typename T,...
6
by: rich | last post by:
I am running this SQL statement in php 4.39 to Postgresql 7.3.4 and I keep getting this error Warning: pg_query(): Query failed: ERROR: syntax error at or near "WITHOUT" at character 29 in...
59
by: Kevin Walzer | last post by:
From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X: "As described in Objective-C for PyObjC users the creation of Objective-C objects is a two-stage process. To initialize...
6
by: Dave Vandervies | last post by:
I'm writing an abstraction layer over an OS's ability to do non-blocking reads and writes on various things. The basic idea is that the caller will be able to let the I/O happen in the background,...
2
by: Ryan Liu | last post by:
Hi, Usually should we call IDbCommand.Dispose() after done with a IDbCommand? If not, what impact to the database server? Thanks, Ryan
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.