Skip to content

Commit e768c58

Browse files
committed
fix(app): express-session requires resave config to be set
1 parent f0cff1b commit e768c58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: app/templates/server/config/express.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = function(app) {
4343
// oauth 1.0 strategy, and Lusca depends on sessions
4444
app.use(session({
4545
secret: config.secrets.session,
46-
saveUninitialized: true<% if (filters.mongoose) { %>,
46+
saveUninitialized: true,
47+
resave: false<% if (filters.mongoose) { %>,
4748
store: new mongoStore({
4849
mongooseConnection: mongoose.connection,
4950
db: '<%= lodash.slugify(lodash.humanize(appname)) %>'

0 commit comments

Comments
 (0)