4.1.2 • Published 7 years ago

cantina-session v4.1.2

Weekly downloads
6
License
-
Repository
github
Last release
7 years ago

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 exists cantina-session will use redis for sessions. If you want to force in-memory session even though the app uses redis, set this to false.
  • 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.

3.0.0

7 years ago

4.1.2

10 years ago

4.1.1

10 years ago