Skip to content

Antyfive/teo-cookie-session-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teo.JS teo-cookie-session-extension

Simple cookie-based session middleware based on cookie-session module.

Installation

npm i -S teo-cookie-session-extension

Teo.JS Config Example

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'
            },
        }
    ],
};

About

Simple cookie-based session middleware for Teo.JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published