Answers for "node js express session expiration"

0

how can i use sessions in express js

const express = require('express')
const session = require('express-session')

const app = express()
app.use(session({
  'secret': '343ji43j4n3jn4jk3n'
}))
Posted by: Guest on March-04-2021
0

express-session

$ npm install express-session
Posted by: Guest on June-07-2021
0

node js express session expiration

app.use(express.session(
  { secret: "secret", store: new MemoryStore(), expires: new Date(Date.now() + (30 * 86400 * 1000)) 
  }));
Posted by: Guest on September-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language