Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cookie-session use in node

app.use(
  cookieSession({
    maxAge: 30 * 24 * 60 * 60 * 1000,
    keys: [keys.cookieKey]
  })
);
app.use(passport.initialize());
app.use(passport.session());
Source by viblo.asia #
 
PREVIOUS NEXT
Tagged: #node
ADD COMMENT
Topic
Name
1+2 =