dir option not working
eslachance opened this issue · comments
It seems connect-sqlite3 is ignoring the dir
option when it's added:
app.use(session({
store: new SQLiteStore,
secret: config.secret,
cookie: { maxAge: 14 * 24 * 60 * 60 * 1000 },
resave: false,
saveUninitialized: false,
dir: "./data"
}));
This still saves the file as ./session
instead of ./data/session
.
Ahhhh nevermind I realize this was inside the new SQLiteStore() constructor that those options go. An example would not go amiss, I did have to go through the code to figure that out though.