New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apx-session

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apx-session

Session manager for APX API server

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 11 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc