K
K
komarevtsev2015-12-23 00:09:42
Node.js
komarevtsev, 2015-12-23 00:09:42

Get session from another application?

I'm making an application on node.
express 4
on port 3000 made authorization, I write data to the session. On port 3001 I want to raise another node process. Is it possible to somehow access req.session from an application on port 3000?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HoHsi, 2015-12-23
@HoHsi

You need to use storage other than RAM. It can be MongoDB, Radis or any other NoSQL database.
If you are using the native module for espress sessions, then take a look here: connect-mongo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question