Provide an option for storing user sessions in an external location (a database, for example). This will allow the app server to become stateless and enable its use in clustered environments.
Add appropriate methods to the following modules to enable storage and retrieval:
Provide an option for storing user sessions in an external location (a database, for example). This will allow the app server to become stateless and enable its use in clustered environments.
Add appropriate methods to the following modules to enable storage and retrieval:
lib/session.js
lib/hooks/session.js
app/hooks/session.js
The developer will create custom
store()
andretrieve()
methods withinapp/hooks/session.js
that return a session ID and session object, respectively.Add settings to
init/config.js
to enable external session storage: