2018-10-16 01:45:37 +00:00
|
|
|
/**
|
|
|
|
* Session Configuration
|
|
|
|
* (sails.config.session)
|
|
|
|
*
|
|
|
|
* Use the settings below to configure session integration in your app.
|
|
|
|
* (for additional recommended settings, see `config/env/production.js`)
|
|
|
|
*
|
|
|
|
* For all available options, see:
|
|
|
|
* https://sailsjs.com/config/session
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports.session = {
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* Session secret is automatically generated when your new app is created *
|
|
|
|
* Replace at your own risk in production-- you will invalidate the cookies *
|
|
|
|
* of your users, forcing them to log in again. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
2018-11-20 00:22:41 +00:00
|
|
|
secret: 'b7f0374251c4d79227067c286fe97ea5'
|
2018-10-16 01:45:37 +00:00
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* Customize when built-in session support will be skipped. *
|
|
|
|
* *
|
|
|
|
* (Useful for performance tuning; particularly to avoid wasting cycles on *
|
|
|
|
* session management when responding to simple requests for static assets, *
|
|
|
|
* like images or stylesheets.) *
|
|
|
|
* *
|
|
|
|
* https://sailsjs.com/config/session *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
// isSessionDisabled: function (req){
|
|
|
|
// return !!req.path.match(req._sails.LOOKS_LIKE_ASSET_RX);
|
|
|
|
// },
|
|
|
|
|
2018-11-20 00:22:41 +00:00
|
|
|
}
|