Add credits to members offline to share principles (with time restrictions)

Source: Internet
Author: User

Implementation Method:
Create an InviteUser_NewUser table. The structure is as follows:


Then follow my ideas:
After the user receives this link
="
Go to the website publicity page and use session or cookies to upload the userid
="
Click "register ".
="
Check whether the userid is the same as the userid of the current Month when the password is DateTime. Now. Month. If the password is different, it expires.
=>
Transfer the userid to the registration page (if it is not a cross-origin domain, simply say cookies)
="
Execute the registration process and insert data to the user table
="
In the same transaction, insert a record to the InviteUser_NewUser table. NewUserID is the currently registered user ID, and InviteID is sent through request. querystring (or recorded in cookies)
="
Complete Registration
="
The user enters the mailbox to activate
="
Execute Activation Process
="
Search for the user ID in InviteUser_NewUser. If yes, record the InviteUserID of the current record and update the user's points.

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.