How can I use php to display a prompt on my computer when someone browses my information? Thank you.

Source: Internet
Author: User
How can I use php to display a prompt on my computer when someone browses my information? Thank you! When someone else browses my personal information after I register for a dating site, a prompt box appears on my computer: "Someone is browsing my information ...", How can I use php to display a prompt on my computer when someone browses my information? Thank you !!!, Someone browses you blank. you use session. how can I use php to display a prompt on my computer when someone browses my information? Thank you!
When someone else browses my personal information after I register for a dating site, a prompt box appears on my computer: "Someone is browsing my information ...",
How can I implement it using php?
When someone browses my information, my computer prompts me? Thank you !!!

------ Solution --------------------
When someone browses you blank, you use the session to record the user id. js does not wait for a while to request the backend (php ), the background browsed your user ID to obtain the information of the corresponding user and then reversed it to the front-end js and js for a pop-up special effect. The idea is like this. Of course there are other methods, but I think this is not bad, the specific implementation depends on you.
------ Solution --------------------
Each page is written with ajax for regular reporting/downloading. the server records the reported information in memcached. The key is uid, and the value is a serialized array: {access time, access user uid .}

For example, if user A accesses user B's homepage, Ajax reports the server: key = B, value = {access time, A}, and the server writes it to memcached.

B user ajax regular download status, of course, is to ask: key = B value, the server will access the visitor information less than 1 minute to return.

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.