Express-session mongodb session not persisting
问题 I am new to sessions and this is my first serious coding project. I've tried a million things and I can't figure out why the session isn't persisting through different routes. When I log req.session.id from two routes, it gives me two different ids when it should be the same one. const express = require('express'); const cors = require('cors'); const mongoose = require('mongoose'); const session = require('express-session'); const bcrypt = require('bcrypt'); let User = require('./models/user