Created
May 9, 2021 16:13
-
-
Save ayanchoudhary/ffd436b446b447ada7c3030df9cbbe03 to your computer and use it in GitHub Desktop.
session creation
This file contains 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
app.use(session({ | |
/* Change this to your own secret value */ | |
secret: 'this-is-secret', | |
resave: true, | |
saveUninitialized: true, | |
cookie: { | |
secure: false, | |
maxAge: 6000000 | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment