Simple cookie-based session middleware based on cookie-session module.
npm i -S teo-cookie-session-extension
module.exports = {
protocol: "http",
host: "localhost",
port: 3100,
cluster: {
enabled: true
},
extensions: [
{
name: "cookie-session",
module: "teo-cookie-session-extension",
config: { // see https://github.com/expressjs/cookie-session for more information
secret: "mySecret",
name: "sessionName",
keys: ["my", "key"],
maxAge: 1000 * 60 * 60 * 24, // 24 hours
domain: 'mysite.com'
},
}
],
};