search

Home  >  Q&A  >  body text

javascript - Jump between two pages, how to save the logo secretly

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

typechotypecho2715 days ago771

reply all(3)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-06-22 11:56:22

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-22 11:56:22

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-22 11:56:22

    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.

    reply
    0
  • Cancelreply