N
N
Nwton2017-01-23 22:08:40
Node.js
Nwton, 2017-01-23 22:08:40

Where does the session cookie come from?

The application does not involve the use of sessions at all. Therefore, no corresponding modules are installed or connected.
However, express itself sometimes places a connect.sid cookie with a hash on the client. However, it is not clear under what circumstances. If you delete it and restart (use another ip / browser), then it may not appear, but it may appear. Where does it come from and how to get rid of it? The documentation of ex itself provides an explanation about cookies in the process of working with a connected express session.
I start the server like this, there are no other use and settings:

app = express();
app.use(express.static(path.join(__dirname, 'public')));
server = require('http').createServer(app).listen(config.port, function(){
  sw('launched');
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Bublikov, 2017-01-23
@bublik462

Look in my documents. from where you run node.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question