apx-session
Session manager for APX API server
Last updated 4 months ago by nullivex .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apx-session 
SYNC missed versions from official npm registry.

APX Session

Kado

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.

Summary

Session manager initializer for APX API server

Usage

Simply add the initializer to the Apx config.

$ npm install apx apx-session
var apx = require('apx')
apx.start({
  initializers: ['apx-session']
})

Security

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.

Configuration

Key

  • Parameter session.key
  • Required no
  • Default $sessionId

The key that denotes the session id.

Max Age

  • Parameter session.maxAge
  • Required no
  • Default 0

The max age in seconds of the session after which the session will expire.

Storage

  • Parameter session.storage
  • Required no
  • Default null

The storage parameter is passed to object-manage see the storage section there for more options.

Changelog

0.2.2

  • Removed the $sessionId from the request after initial middleware
  • Added test to confirm that blank sessionIds fail gracefully
  • Added testing against bogus session ids

0.2.1

  • Upgraded to APX 0.7.1

0.2.0

  • Session ID added to response is now $sessionId
  • Upgraded for APX 0.6

0.1.0

  • Initial release

Current Tags

  • 0.2.3                                ...           latest (4 months ago)

5 Versions

  • 0.2.3                                ...           4 months ago
  • 0.2.2                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |