javascript - Jump between two pages, how to save the logo secretly
typecho
typecho 2017-06-22 11:54:22
0
3
743

The problem is this, page A has a list of items. Page B is the base page of the item list on page A.
Now I want to add a logo to the top 10 units in page A in a certain front-end and back-end interaction in page B.

What good idea is there to solve it? My first reaction is:
1 Add fixed parameters to the jump links of the top 10 units on page A.
Question: If someone saves this path, Or directly change the parameter value, causing the front-end and back-end interaction information in page B to be unreal.
2 Save cookies on page A, but the problem is: cookies can also be changed

Or solve it in the direction of Node (the backend is node)

Due to some business reasons, Node cannot process the data when spitting out the data on page A

typecho
typecho

Following the voice in heart.

reply all(3)
淡淡烟草味

Any front-end data is unreliable. If you want reliable data, you can only operate it on the server

大家讲道理

Using express's session module, the cookie only performs an identification authentication, and the logo is stored in the session.

大家讲道理

If you have high requirements for accuracy, then directly request server verification on page B. Do you want to display page B? If it is not consistent with the server, redirect.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!