-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
'clearExpired', 'checkExpirationInterval', 'expiration' options don't works in my code how can i fixed it?
it seems to need some privileges, what privileges need for these options?
const mysql = require('mysql');
const db = mysql.createConnection({
host: 'localhost',
user: 'host',
password: '1234',
database: 'pohub',
port:'3306'
});
const sessionStore = new MySQLStore({
clearExpired: true,
checkExpirationInterval: 5000,
expiration: 10000,
}, db);
app.use(
session({
httpOnly: true,
secret: "hello",
resave: false,
saveUninitialized: false,
store: sessionStore,
cookie: {
maxAge: 10000,
sameSite: 'lax',
/*secure: true,
sameSite: 'none',*/
}
})
);
Metadata
Metadata
Assignees
Labels
No labels