Add new Express session option#220
Merged
colinrotherham merged 6 commits intomainfrom Feb 26, 2026
Merged
Conversation
f0e33ec to
5d084e4
Compare
5d084e4 to
686bcce
Compare
session optionsession option
1fcef2d to
7c18b1e
Compare
686bcce to
eebbbb5
Compare
1e280e0 to
fc2a04d
Compare
eebbbb5 to
3307e94
Compare
fc2a04d to
bb6e38c
Compare
3307e94 to
98ea0d4
Compare
d4f6448 to
a5e6475
Compare
98ea0d4 to
8543c1e
Compare
a5e6475 to
3963a3c
Compare
8543c1e to
def0f87
Compare
3963a3c to
f9387ad
Compare
def0f87 to
9fcfa43
Compare
f9387ad to
b1193a8
Compare
9fcfa43 to
65bef37
Compare
frankieroberto
approved these changes
Feb 26, 2026
Contributor
There was a problem hiding this comment.
Should this file have a (very basic) test now? Or is this considered a private / internal function?
Contributor
Author
There was a problem hiding this comment.
Happy to add one
b1193a8 to
8f16701
Compare
65bef37 to
4cd2680
Compare
4cd2680 to
4ee4405
Compare
Contributor
Author
|
Ready to review again @frankieroberto I've added Demo PR to test either cookie-session and connect-pg-simple |
cd2dbe9 to
4ee4405
Compare
frankieroberto
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for an (optional) Express
sessionoption for custom session storesThis change unblocks NHSDigital/manage-vaccinations-in-schools-prototype#178 and uses:
req.session.regenerate()during session resetreq.session.save()after session resetWe should test this feature with various asynchronous session stores