About the problem that cookie disappears after jumping to the page?

the company outsourced the project to someone else to do it, and now it is necessary to log in without login. The login of the project is to use the account password to call the API and store the data in cookie, then judge the cookie, and then enter the home page.
what you need to do now is to jump through the form form and save the cookie with js, but you can"t get in after the jump. Cookie is empty. You can see the cookie after logging in through the account password. The local run jump is valid, but the remote operation is invalid.
Note: js jumps to the .aspx page;
solves

Mar.06,2021

are you jumping to a page with a different address? , cookie is based on the domain name, and cookie objects vary from domain name to domain name


there are several possibilities

  1. cookie cache setting time to see 3600
  2. whether the cookie is lost due to browser security. You can look at it in another browser
  3. .
  4. whether a cross-domain situation occurs after the jump

you rule it out one by one and take a look at it.


cookie has domain restrictions. You open and debug to see what the domain of cookie is and can be set. The same domain can share cookie


1, check whether the domain name is the same before and after the jump
2, and see if the set cookie path is the root path, if there is a problem with the root path

.
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-1bf599f-31f9d.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-1bf599f-31f9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?