neo4j-sessionstore

Implementation of a session storage using Neo4j as an extension of the express-session middleware.

Usage no npm install needed!

<script type="module">
  import neo4jSessionstore from 'https://cdn.skypack.dev/neo4j-sessionstore';
</script>

README

neo4j-sessionstore

Usage

This can be used as a session store with express-session.

Note

The session store needs to be closed manually for now, with a call to close() like this:

const store = new Neo4jSessionStore(OPTIONS, (err) => {
        store.close();
        if (err) reject(err);
});

There is a process exit listener that tries to handle this for you.

Inspiration

Inspired by https://github.com/rafaelrpinto/dynamodb-store

There is also a Neo4j session store for Java on Jooby.io: https://jooby.io/v1/doc/neo4j/#neo4j-session-store