We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can i get a session from catbox-mongodb?
catbox-mongodb
const server = new Hapi.Server({ cache: [{ name: 'mongoCache', engine: require('catbox-mongodb'), host: '127.0.0.1', partition: 'cache' }] }); server.register([{ register: Yar, options: { storeBlank: false, maxCookieSize: 0, errorOnCacheNotReady: true, cache: { cache: 'mongoCache', expiresIn: 48 * 60 * 60 * 1000, segment: 'session' }, cookieOptions: { password: 'secret', isSecure: false, clearInvalid: true, isSameSite: 'Strict', isHttpOnly: true, ttl: 0 } } }]);
setting the session with req.yar.set('test', {}) and can't get the data with req.yar.get('test');
req.yar.set('test', {})
req.yar.get('test');
The text was updated successfully, but these errors were encountered:
nvm.. ttl shouldn't be 0 and getting the data with req.yar._store.test is working fine!
req.yar._store.test
Sorry, something went wrong.
No branches or pull requests
How can i get a session from
catbox-mongodb
?setting the session with
req.yar.set('test', {})
and can't get the data withreq.yar.get('test');
The text was updated successfully, but these errors were encountered: