how to manage multiple session in express js
i am building a site that as two url ('/','/admin') session are conflicting here is my app.js session code app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); app.use(cookieParser()); app.use(session({ secret: "JHGF>,./?;;LJ8#$?,KL:>>>,,KJJJDHE", resave: true, saveUninitialized: true })); app.use(flash()); app.use(passport.initialize()); app.use(passport.session()); app.use(express.static(path.join(__dirname, 'public'))); app.use('/', index); app.use('/admin', admin); please how can i fix this? here is index.js var express = require('express