I want to create a Django application with some registered users. On the other hand, since I need some features in real time, I want to use the Express.js application.
Now the problem is that I do not want users without authorization to access Express.js applications. So I need to split session storage between Express.js and Django applications.
I thought using Redis would be a good idea, since volatile keys are perfect for this fit, and I'm already using Redis for another part of the application.
In the Express.js application, I will have this code:
[...] this.sessionStore = new RedisStore; this.use(express.session({
On the Django side, I would consider using django-redis-session .
So is this a good idea? There will be no problems? Especially about the secret key, I'm not sure that both of them will participate in the same sessions.
source share