Questions tagged [connect-mongo]

100 questions
0
votes
1 answer

' undefined is not a function' Error on app.use session in NHibernate, mongo store

I have a database in mongo to store session state called 'SessionStore' with a collection called 'Sessions' to store session state. I'm using expression-session for managing sessions. Code to setup sessions is as follows; var session =…
Paul S Chapman
  • 832
  • 10
  • 37
0
votes
0 answers

Mongodb connection error (connect-mongo)

I have mongodb setup as standalone server. I also have replicaset enabled as standalone for enabling the oplog (my app tracks realtime updates). This setup works fine. But randomly I get the error message no valid seed servers in list with…
user3658423
  • 1,904
  • 5
  • 29
  • 49
0
votes
1 answer

Error in installing connect-mongo

****When I try to install connect-mongo or connect-mongo@0.4.1 I am getting this error , when I try installing express or other features , I never got this error ,What I can do to avoid this error. Before this I installed…
Tangle Designer
  • 25
  • 1
  • 11
0
votes
1 answer

How to connect to a `mongos` instance over TLS/SSL using `connect-mongo` for `express-session`?

I use connect-mongo as the storage module for express-session, and all was working well until I switched to the new 'MongoDB+' TLS/SSL deployment from Compose.io, and now I can't connect. I don't know their architecture in detail, but more…
AJB
  • 7,389
  • 14
  • 57
  • 88
0
votes
0 answers

Express session secret - from client to server?

I am using express-session with Express 4. I am confused about how I pass the secret from the client to the server. I assume that I need to pass the secret for every request, otherwise I don't really understand what the secret is for. var session =…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
2 answers

Error: Can't set headers after they are sent. when auto reconnect to mongodb

I am getting the following error: Error: Can't set headers after they are sent. at ServerResponse.OutgoingMessage.setHeader (http.js:708:11) at ServerResponse.res.setHeader…
0
votes
1 answer

Pass user from passport to socket.io

I am using passportjs, express 4, socket.io and to connect passportjs with socket i have added the passport.socketio with connect-mongo as Session Store. I saw in many posts that i have to avoid cors use. So when i use in client side code:…
Honchar Denys
  • 1,408
  • 4
  • 29
  • 54
0
votes
0 answers

connect-mongo cross-domains session issue

I am having a problem with sessions across sub-domains I use connect mongo like so: app.use(session({ // req.session is populated secret: 'xxxxxx', saveUninitialized: true, resave: true, store: new MongoStore({ …
avrono
  • 1,648
  • 3
  • 19
  • 40
0
votes
1 answer

NodeJS Mongoose connect-mongo Session Storage with Mongo

I try to configure my connect-mongo in the way I can use session in nodejs that is persisted with mongo. I use following code var mongoose = require('mongoose'); function connect(url, callback) { mongoose.connect(url); var connection =…
Rudolf Schmidt
  • 2,345
  • 5
  • 21
  • 28
0
votes
1 answer

connect-mongo clarification needed, how to use it for sessions with express in nodejs

In my node.js app, I'm trying to get the session data to store in a mongoDB database. But the usage of connect-mongo is somewhat puzzling to me and I was hoping if someone could explain to me the correct usage, along with all the other usages…
laggingreflex
  • 32,948
  • 35
  • 141
  • 196
1 2 3 4 5 6
7