session.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * Session Configuration
  3. * (sails.config.session)
  4. *
  5. * Use the settings below to configure session integration in your app.
  6. * (for additional recommended settings, see `config/env/production.js`)
  7. *
  8. * For all available options, see:
  9. * https://sailsjs.com/config/session
  10. */
  11. module.exports.session = {
  12. /***************************************************************************
  13. * *
  14. * Session secret is automatically generated when your new app is created *
  15. * Replace at your own risk in production-- you will invalidate the cookies *
  16. * of your users, forcing them to log in again. *
  17. * *
  18. ***************************************************************************/
  19. secret: '48ed5bf647816324430b46fc5e35008c',
  20. /***************************************************************************
  21. * *
  22. * Customize when built-in session support will be skipped. *
  23. * *
  24. * (Useful for performance tuning; particularly to avoid wasting cycles on *
  25. * session management when responding to simple requests for static assets, *
  26. * like images or stylesheets.) *
  27. * *
  28. * https://sailsjs.com/config/session *
  29. * *
  30. ***************************************************************************/
  31. // isSessionDisabled: function (req){
  32. // return !!req.path.match(req._sails.LOOKS_LIKE_ASSET_RX);
  33. // },
  34. };