How to judge the jump by cookie?

there are two sets of pages of A br B
when you log in, you will choose An and B, A page will be displayed after A login, and B page will be displayed after B login. < page > how can I judge by cookie here?

Mar.02,2021
Add a field view=an or view=b to

cookie. I don't know whether you are judged by the front end or the back end.


submit to the backend when you select a page, and obtain data from the backend when displaying the page to prevent ultra vires.
of course, if there is no difference in permissions on the AB page, it is also possible to put cookie


what do you want to judge, that is, you default to An after selecting A for the first time? Then save a value to cookie after the first selection to mark what is selected


  1. you need to be able to write cookie
  2. you need to get the cookie value in the server segment, and then make a specific return based on the cookie value (this is the back-end judgment processing), or you can use the front-end processing to automatically jump to the corresponding page through a jump page.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac6bb-69846.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac6bb-69846.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?