PHP Email activation

Source: Internet
Author: User
PHP mailbox activation function: What is the common practice?

Also activated. I want to ask what are the parameters in a general URL, user ID and user name?

What function is used for transcoding with the password?

If a valid time parameter is added, can the link parameter be modified by the user?

Thank you.


Reply to discussion (solution)

Also activated. I want to ask what are the parameters in a general URL, user ID and user name?
User name and password ~

What function is used for transcoding with the password?
This can be written by yourself as needed

If a valid time parameter is added, can the link parameter be modified by the user?
No time parameter is required. you only need to record the sending time when sending an email. when you click a url from your mailbox to connect to this site, you can determine whether the account's validity period has expired.

Reply to one_chord:
What function is used for transcoding with the password?

This can be written by yourself as needed

Is MD5 absolutely safe to pass the password directly through a URL?



Reply to one_chord:
No time parameter is required. you only need to record the sending time when sending an email. when you click a url from your mailbox to connect to this site, you can determine whether the account's validity period has expired.

Is it recorded in COOKIES?

Well, you just need to write a password algorithm yourself.
This is done in this way,

Function Valid () {(username id * 16-32) string connection time and input}


This method is used for user authentication.
You can reverse the algorithm just now. That is
+ 32 divided by 16


Each has its own advantages.
Csdn is also a custom function.

Reply to one_chord:
What function is used for transcoding with the password?

This can be written by yourself as needed

Is MD5 absolutely safe to pass the password directly through a URL?



Reply to one_chord:
No time parameter is required. you only need to record the sending time when sending an email. when you click a url from your mailbox to connect to this site, you can determine whether the account's validity period has expired.

Is it recorded in COOKIES?

Records can be stored in databases or XML ~

Well, you just need to write a password algorithm yourself.
This is done in this way,

PHP code
Function Valid (){
(Username id * 16-32) string connection time and input
}


This method is used for user authentication.
You can reverse the algorithm just now. That is
+ 32 divided by 16


Each has its own advantages.
Csdn is also a custom function.

Haha. Thank you.

Records can be stored in databases or XML ~


Add fields to the database .. I'm curious about how to make XML. can you tell me? thank you.

The parameters in the URL are only good for user IDs.

Others are controlled by programs and databases. The time limit can be placed in the activation queue or marked.

As long? 1 ??? The id is enough.
Then the url is activated. you can get the adding time according to the id... then compare the current activation time according to the adding time... to determine the validity period.

There are many activation methods, such as the user's ID parameter, user name, user's unique email address, or the random number generated during registration.

No. can you teach me?

I 'd better send me

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.