SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Account Activation

    Hi, i have a few questions in relation to account activation, which i hope someone can help me with:

    01 - when a user creates an account, should we limit the time in which they can activate the account using the link in their email

    02 - if so, how should we handle the link if the token no longer appears in the database

    03 - is there anything i need to look out for in terms a user misusing the link below

    http://www.website.com/activate-acco...f17a30a67d9ea4

    Thanks in advance for your help

  2. #2
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    930
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by oo7ml View Post
    01 - when a user creates an account, should we limit the time in which they can activate the account using the link in their email
    I don't think that there is any should in this case but it's a good idea to do it so that your database is not littered with inactive accounts that could have been set up by robots or other illegitimate users. I'd allow the link to be active for a week or two and then delete the account. If you really don't want to miss any potential users you might set up a system that sends reminders about account activation after a few days an account is inactive. But after a couple of tries I'd finally give up and delete the account.

    Quote Originally Posted by oo7ml View Post
    02 - if so, how should we handle the link if the token no longer appears in the database
    Some information that the link is no longer active because the account may be already active or the link may have expired. If your links contain user id's then you might inform the user that their account is already active and they should log in.

    Quote Originally Posted by oo7ml View Post
    03 - is there anything i need to look out for in terms a user misusing the link below

    http://www.website.com/activate-acco...f17a30a67d9ea4
    Just make sure that people can't make up valid activation links by substituting or guessing values.

  3. #3
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool, thanks for your help here...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •