Browse files

Fix session store

  • Loading branch information...
1 parent a470862 commit 3ffccb5f3203166eca492458a71f9a686aca92b9 @biggora committed Dec 22, 2012
Showing with 5 additions and 7 deletions.
  1. +1 −1 README.md
  2. +4 −6 app.js
  3. BIN public/img/logo.png
View
2 README.md
@@ -262,7 +262,7 @@ Aleksej Gordejev (aleksej@gordejev.lv).
(The MIT License)
-Copyright (c) 2012 Aleksej Gordejev <aleksej [åt] gordejev [døt] lv>
+Copyright (c) 2012 Aleksej Gordejev <aleksej@gordejev.lv>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
10 app.js
@@ -55,13 +55,11 @@ function bootApplication(app) {
app.use(express.cookieParser('secret'));
app.use(express.session({
cookie: {
- maxAge: 8640000
+ maxAge: 8640000,
+ secure: true
},
- secret: 'secret',
- store: new MongooseStore({
- collection: 'session',
- clear_interval: 60
- })
+ key: 'trinte',
+ secret: 'secret'
}));
app.use(express.csrf());
app.use(useragent.express());
View
BIN public/img/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3ffccb5

Please sign in to comment.