Why not persist session?

I decided to try to add the ability to log in to the application via session
But they are not saved.
Run on the local machine (localhost:3000/).
Mixed code from the official example and other guides:
 secret: 'some_pass',
 resave: true,
 saveUninitialized: true,
 cookie: { httpOnly: false,
 maxAge : 24*60*60*1000,
 secure: false,
 resave: false,
 saveUninitialized: true,
 unset: 'destroy',
 domain: 'http://localhost:3000' }
app.get('/', (req, res) => {
Res. json(req.session);
 req.session.test = "1";

It can be clearly seen. When the page loads displays the current session and adds a new variable. However, after reloading the page it is not visible.
March 23rd 20 at 18:40
0 answer

Find more questions by tags Express.jsSessionsNode.jsJavaScript