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