Automatic message alert performance

Source: Internet
Author: User
Automatic message alert feature
Recently used Php+mysql wrote a record coupon information of local small program, want to add a coupon in the back of the pre-warning function, can realize every time after opening the program on the home page has prompted information can, please give me some ideas! Thank you, first!
------Solution--------------------
You've made yourself very clear.
When the user each login, check whether there is a coupon, if any, to determine the coupon expiry time and the current system time difference, if less than or equal to a value, pop-up message prompt.
------Solution--------------------
Check the expiry time periodically, if it expires, it will show you the desired reminder message.
------Solution--------------------
If it is to boot into the system, directly to determine the time, if it is a real-time reminder, JS long connection rotation
------Solution--------------------
References:
you've made yourself very clear.
When the user each login, check whether there is a coupon, if any, to determine the coupon expiry time and the current system time difference, if less than or equal to a value, pop-up message prompt.
+1 is the idea.
------Solution--------------------
For more information please google " PHP js message push "
  • Related Article

    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.