How to set shiro to stay logged in?

redis saves the session of shiro
rewrites EnterpriseCacheSessionDAO.doUpdate, and each update changes the corresponding survival time of session key (TTL)
requirements:
for example, set the expiration time of session to 1 hour
then I hope that during this 1 hour, if the user has been visiting the page of the site (background api is called), the survival time of session will be extended, for example, expiration time = current visit time + 1 hour

the actual situation is:
users do update the ttl of session in redis even if they continue to operate the website within 1 hour (session expiration time). However, the cookie on the browser side is deleted by the browser within 1 hour at most (it seems that shiro will modify the Max-age=0 of cookie and let the browser delete the cookie), so that users will report an error when they visit our website: no login!, but there is still the session in the actual redis. It"s just that the corresponding cookie on the browser has been deleted

P.S: is it possible to implement session persistence without the session manager of rememberMe?

P.S:session manager configuration:

    @Bean(name="sessionManager")
    public DefaultWebSessionManager defaultWebSessionManager() {
        DefaultWebSessionManager sessionManager = new DefaultWebSessionManager();
//        sessionManager.setGlobalSessionTimeout(1800000); //30(1800000)
        sessionManager.setDeleteInvalidSessions(true);
        sessionManager.setSessionDAO(getRedisSessionDao());
        sessionManager.setSessionValidationSchedulerEnabled(true);
        sessionManager.setSessionIdCookieEnabled(true);
        sessionManager.setSessionIdCookie(getSessionIdCookie());
        return sessionManager;
    }

configuration error. You should set the max-age of cookie to-1 (the browser will not delete cookie (sessionId) unless you close the browser), and set globalsessiontimeout

at the same time.
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-1bbadfd-12774.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-1bbadfd-12774.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?