# session-handler

> Bloglovin sessions.

Latest version **2.0.3** (published 2014-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install session-handler
pnpm add session-handler
yarn add session-handler
bun add session-handler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2014-04-04 |
| First published | 2014-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Bloglovin |
| Maintainers | simme |
| Keywords | hapi, bloglovin, session |

## Links

- npm: https://www.npmjs.com/package/session-handler
- npm.io page: https://npm.io/package/session-handler

## Dependencies (1)

- [uuid](https://npm.io/package/uuid.md) ~1.4.1

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 2.0.3 (latest) — 2014-04-04
- 2.0.1 — 2014-03-24

## README

session-handler
==========
A simple session handler and cookie parser for node using memcached for session storage.

Install
-------

    npm install

Documentation
------

TODO

Examples
------

```javascript
var mem_options = require('./options.json')
  , memcached = require('memcached-wrapper')(mem_options)
  , ses_options = {'prefix':'test'}
  , sessions = require('./../index')(memcached, ses_options);

sessions.start(req, resp, function(err, resp) {
  // If no error, we have a valid session
  var value = sessions.get(':SESSION_NAME')

  sessions.set(':SESSION_NAME', 'bar', function (err, resp) {
    // If no error, session is now set and saved in memcached
  });
});
```

Test
------
Depends on mocha, run

    make test

---
_Source: https://npm.io/package/session-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
