STOP AND READ THIS
APX or Apex is no longer maintained and is superseded by Kado.
A new package is available to handle all your JavaScript needs. See kado.org for details.
Session manager initializer for APX API server
Simply add the initializer to the Apx config.
$ npm install apx apx-session
var apx = require('apx')
apx.start({
initializers: ['apx-session']
})
This session manager does not provide any hijack protection. To use secured sessions the connection should be made via TLS/SSL which is the only true way to secure the connection.
- Parameter
session.key
- Required no
- Default
$sessionId
The key that denotes the session id.
- Parameter
session.maxAge
- Required no
- Default
0
The max age in seconds of the session after which the session will expire.
- Parameter
session.storage
- Required no
- Default
null
The storage parameter is passed to object-manage see the storage section there for more options.
- Removed the $sessionId from the request after initial middleware
- Added test to confirm that blank sessionIds fail gracefully
- Added testing against bogus session ids
- Upgraded to APX 0.7.1
- Session ID added to response is now
$sessionId
- Upgraded for APX 0.6
- Initial release