Cookie problem in angularJS

angularJS+ui-router+webpack is currently used in the company"s front-end projects. Now there is an idea: after the user logs in, the front end saves the user information in cookie, and the setting is valid for a certain period of time, and then every time the front end route jumps, it has to judge whether the user information exists, exists, and continues to jump; if not, jump to the login page. Now there is a situation, after the user manually deletes all the cache in the browser, Google browser: the front-end page, when you jump, automatically jumps to the login page; under IE, no, console comes out and finds that cookie is still there and is not cleaned up. In addition, it is found that when the front end redirects the page, ui-router will send a http request page with a set cookie (for some reason). I suspect that the reason may be that it is used by ui-router, so the cookie is not deleted.
set cookie code:

$cookies.put("userInfo",userInfo,{"expires":expireUser},"http://192.168.2.15:8080/shinyview");

ui-router route jump:

excuse me, can you help me analyze why there is no clean cookie??

Mar.03,2021
Is it difficult to answer the question

? Dear gods

Menu