Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to override storage engine for sessions. #405

Closed
dcbartlett opened this issue May 23, 2013 · 2 comments
Closed

Add ability to override storage engine for sessions. #405

dcbartlett opened this issue May 23, 2013 · 2 comments
Assignees

Comments

@dcbartlett
Copy link
Contributor

To override the default storage engine for your application's session store. Just add the following to config/application.js

session: {
    adapter: 'mongo',
},

This will override the default that is setup in the Sails.JS core, allowing you to use mongodb for your session stores.

@ghost ghost assigned dcbartlett May 23, 2013
@mikermcneil
Copy link
Member

This is working for 'redis' in master--

Technically, any Sails adapter that supports CRUD could be used as a session store this way if we put together a generic connect-sails-adapter module to do the mapping. I think that might be the best way to do it-- different projects are going to necessitate all different kinds of session store support.

@mikermcneil
Copy link
Member

Closing this for now since we have Redis support- next step is an agnostic connect-* adapter that works w/ any waterline adapter.

Also see #405 for a hypothetical method of solving this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants