Express-session setting validity period is invalid

I set the expiration time of session to 7 days according to the way on the Internet, but it will expire after a while, probably less than half an hour. May I ask how to solve it?
express version is above 4.0. here is the configuration code:

var express = require ("express");
var app = express ();
var router = require (". / router/mainRouter.js");
/ / var adminRouter = require (". / router/adminRouter.js");
var session = require ("express-session");
var db = require (". / models/db.js");

/ / use session
app.use (session ({

secret: "keyboard cat",
cookie: { maxAge: 604800000},
resave: true,
saveUninitialized: true,
rolling: true

}));

Mar.01,2021

how many 10 minutes is a moment?

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