express-session-affinity

1.0.2 • Public • Published

Express Session Affinity

NPM Version Build Status via TravisCI Coverage Status

A very simple express middleware for session affinity with scaled cloud foundry applications. Sets the JSESSIONID cookie so that each user will consistantly connect to the same cloud foundry node.

See https://docs.cloudfoundry.org/concepts/http-routing.html#sessions

npm i --save express-session-affinity

Usage

Add as a middleware to the top level of your express application.

const express = require('express');
const expressSessionAffinity = require('express-session-affinity');

app = express();

app.use(expressSessionAffinity);

Readme

Keywords

none

Package Sidebar

Install

npm i express-session-affinity

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

3.82 kB

Total Files

7

Last publish

Collaborators

  • e-compton