When springsecurity returns cookies, there is no valid time for expires?

when springsecurity returns cookies, there is no valid time for expires?
where does springsecurity configure the place where cookies is generated? That is, the place that is returned to the front-end set-cookie.

what is returned now is that there is no time:

clipboard.png

Mar.10,2021

JSESSIONID is generated by application services, and it has nothing to do with spring security.

you can set

in web.xml of the application.
<session-config>
    <session-timeout>720</session-timeout> <!-- 12h * 60-->
    <cookie-config>
        <max-age>43200</max-age> <!-- 12h * 3600 -->
    </cookie-config>
</session-config>
Menu