How does php remember which link on the page is clicked by visitors? next time I log on to this page, I will jump directly to that link.

Source: Internet
Author: User
How does php remember which link on the page is clicked by tourists? next time I log on to this page, I will jump directly to that link. now there is A page with two links on it & nbsp; pointing to & nbsp; URL & nbsp; B & nbsp; and & nbsp; C suppose a visitor clicks the link of website B on site A and how to write code & nbsp; in order to automatically jump to php next time when A visitor logs on to A, remember which link on the page the visitor clicks will jump directly to the link next time the visitor logs on to the page.
Now there is A page
There are two links pointing to website B and Website C respectively.
Suppose a visitor clicks the link of website B at Site.
How can I write code to automatically jump to B when A visitor logs on to A next time? Thanks for sharing:
------ Solution --------------------
Hash has little to do with the web page, just to generate a unique non-repeated string, see

Http://www.php.net/manual/en/function.hash.php

Echo hash (md5, strtotime ('Now '). $ _ SERVER ['remote _ ADDR']);

Database

Hash url
50b744170230a4cad75d4dc37bf9079e a.com/ B .html

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.