Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix session store

  • Loading branch information...
commit 3ffccb5f3203166eca492458a71f9a686aca92b9 1 parent a470862
@biggora authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.