Add USE_JSESSIONID environment variable to turn on jsessionid in sockjs.

This commit is contained in:
Nick Martin
2013-10-03 15:38:08 -07:00
parent 2fd6a2b4d2
commit d0a6105272
2 changed files with 7 additions and 1 deletions

View File

@@ -104,6 +104,9 @@
* Better error when passing a string to `{{#each}}`. #722
* Add support for JSESSIONID cookies for sticky sessions. Set the
`USE_JSESSIONID` environment variable to enable.
* Upgraded dependencies:
* Node from 0.8.24 to 0.10.19
* MongoDB from 2.4.4 to 2.4.6

View File

@@ -38,7 +38,10 @@ StreamServer = function () {
// combining CPU-heavy processing with SockJS termination (eg a proxy which
// converts to Unix sockets) but for now, raise the delay.
disconnect_delay: 60 * 1000,
jsessionid: false
// Set the USE_JSESSIONID environment variable to enable setting the
// JSESSIONID cookie. This is useful for setting up proxies with
// session affinity.
jsessionid: !!process.env.USE_JSESSIONID
};
// If you know your server environment (eg, proxies) will prevent websockets