cantina-session
v4.1.2
Published
Session support for Cantina
Downloads
7
Readme
cantina-session
Provides sess middleware for Cantina applications.
Dependencies
Provides
- app.sessionHandler - Session middleware.
- app.sessions - (If cantina-redis is loaded) Modeler collection of sessions.
Adds Middleware
- app.sessionHandler
Configuration
- weight - Session middleware weight.
- redis - By default, if
app.redis
existscantina-session
will use redis for sessions. If you want to force in-memory session even though the app uses redis, set this tofalse
. - cookie - Cookie settings (see
sess
docs)
Defaults
{
session: {
weight: -300,
redis: true,
key: "sess",
cookie: {
httpOnly: true,
path: '/'
}
}
}
Developed by Terra Eclipse
Terra Eclipse, Inc. is a nationally recognized political technology and strategy firm located in Santa Cruz, CA and Washington, D.C.