Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 454 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 454 Bytes

sails-pg-session

Adapter for Sails Js to store sessions in Postgres

Usage with Sails.js: >10.0.x

Install support functions in the database:

 psql <databasename> < ./sql/sails-pg-session-support.sql

Add the following configuration to config/session.js:

  adapter: 'sails-pg-session',

  database: 'dbname',
  host: 'localhost',
  user: 'dbuser',
  password: 'dbpasswd',
  port: 5432