Invalid maxAge validity period set by express-session

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");

app.use(session({
    secret: "keyboard cat",
    cookie: { maxAge: 604800000},
    resave: true,
    saveUninitialized: true,
    rolling: true
}));

could you tell me how to solve this problem? is there something wrong with the configuration?

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