Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js express session expiration

app.use(express.session(
  { secret: "secret", store: new MemoryStore(), expires: new Date(Date.now() + (30 * 86400 * 1000)) 
  }));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #js #express #session #expiration
ADD COMMENT
Topic
Name
7+5 =