Retrieve password How to set the connection expiration time in a message

Source: Internet
Author: User
Title, I have implemented the email with Phpmailer.
But what should be sent to the user to change the password hyperlink, how should be generated, and how to control its failure time?
Ask the big God pointing brother.


Reply to discussion (solution)

Seek the guidance of the Great God ...

Seek the guidance of the Great God ...

The generated words should be based on the parameters of the page needs to be encrypted after the string bar, as for the expiration time that can be passed in the parameters of a time to send the value of the past, when he clicked on the time to get to the moment and make a judgment on the line ...


Didn't get it, Makr a bit ~ ~

First you will send a connection to the member's mailbox, and then this connection parameters, can be by your site's domain name + current time + Member mailbox encryption composition, encryption method you can use the simplest base64encode, and then separated by commas these 3 parameters, similar to $str = Base64Encode ( "Www.aaa.com,2013-11-20 minutes, Seconds, aaaaa@qq.com"); When a member clicks on the link in the mailbox, it jumps back to your website and then logic handles it himself.

Reference http://www.helloweba.com/view-blog-228.html

When the database record 1, when the activation of the time difference.

has been achieved, thank you, the great God!

  • 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.