Closed ghost closed 6 years ago
That is a "checkPeriod", but by default express-session
sets a cookie max-age time to 24h, that will be used to check if an entry should be pruned or not.
You need to update your session configuration and add a:
cookie: { maxAge: 15000 } // cookie expires after 15sec.
The checkPeriod of memorystore will prune it once it's expired.
Ok
I'm doing a site on nodejs and found your plugin, but it does not work correctly. Here is my code:
By the code it is clear that cookies should expire after 20 seconds. But having checked the work, I found out that the cookies do not expire, they are stored endlessly and the result is always the same. What to do?