Skip to content

bamwang/ecr-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ecr-session

A Redis backed Express-session wrapper for sharing the session store under the same root domain between different servers

Usage

const app = express();
app.use(commonSession({
    secret: 'secret_to_sign_session_id',
    saveUninitialized: true,
    ttl: '3600', // second
    url: 'redis://redis_url:6379/0',
    prefix: 'session_store_prefix',
    domain: 'root-domain.io',
}));

All servers set with the same option will share the same session store.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published