Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
session store
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemmmy committed Jan 6, 2018
1 parent 4249e74 commit add9a7f
Show file tree
Hide file tree
Showing 4 changed files with 725 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.idea/
config.json
sessions
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const bb = require("express-busboy");
const handlebars = require("express-handlebars");
const promBundle = require("express-prom-bundle");
const session = require("express-session");
const SQLiteStore = require("connect-sqlite3")(session);
const helpers = require("handlebars-helpers")();
const dateformat = require("helper-dateformat");

Expand Down Expand Up @@ -40,7 +41,8 @@ app.use(session({
secret: config.sessionSecret,
cookie: {},
resave: false,
saveUninitialized: true
saveUninitialized: true,
store: new SQLiteStore
}));

bb.extend(app, {
Expand Down
Loading

0 comments on commit add9a7f

Please sign in to comment.