Delete different path data stored in cookies under the same domain name.

there is a problem: the token logged in by the user has the path:"/"; of cookies cut to system A, the token of system A has path:"/a", cut to system B, and the token of system B has path:"/B". When I quit in system A, I erased the data in cookies at the same time. Now I can only delete the user token and the token, of system A, but not the cookies in system B. What should be done

Mar.19,2021

the so-called deletion is more like a re-overwrite. When setting cookie, you can actively add path=/ , path=/a , so you only need to reset it once, and then set expires to-1 to

.
Menu