V
V
vetsmen2017-02-12 15:00:58
JavaScript
vetsmen, 2017-02-12 15:00:58

Problem with session storage in redis store?

I store sessions like this:

var session = require('express-session'),
redisStore = require('connect-redis')(session),
sessionStore = new redisStore();

app.use(session({key: 'express.sid', store: sessionStore, secret: 'secret', resave: true, saveUninitialized: true }));

However, recently, I stopped recording sessions in redis, because when I call sessionStore.get(sessionID, function(err, session) {} I get an undefined response.
To check, I put the project on another server, the problem disappeared.
My assumptions are - redis just ran out of space to store new sessions, or old session records just won't be deleted.What
could be the problem and how can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vetsmen, 2017-02-12
@vetsmen

How many times do I think that the problem is in one thing, but in fact it turns out to be completely different.
It's decided, everything is fine with radish in this regard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question