Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resave session on each request even if resave is set to false #136

Open
ragesoft opened this issue May 20, 2022 · 2 comments
Open

resave session on each request even if resave is set to false #136

ragesoft opened this issue May 20, 2022 · 2 comments

Comments

@ragesoft
Copy link

Hi there,

in the main modul for express sessions ( https://github.com/expressjs/session ) there is an issue for "resave" config.
expressjs/session#891

Maybe it is possible to work around this behavior in this store here?
I see in my sql query log on every client requests 2 sql queries (SELECT and UPDATE) for each client session...

Do you have any idea how to limit this? Like successed by the issue owner in the linked issue (max-age 80% => resave) :)

Greetings

@mmilleruva
Copy link

@ragesoft This is what I ended up using: #133

@chill117
Copy link
Owner

The latest version of this module includes a new option "disableTouch" which could help - also implemented by @mmilleruva in the referenced pull-request above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants