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

server.state ttl must be a number #1835

Closed
mindbits opened this issue Aug 5, 2014 · 0 comments
Closed

server.state ttl must be a number #1835

mindbits opened this issue Aug 5, 2014 · 0 comments
Assignees
Labels
bug Bug or defect
Milestone

Comments

@mindbits
Copy link

mindbits commented Aug 5, 2014

From the server.state API Reference:

ttl - time-to-live in milliseconds. Defaults to null (session time-life - cookies are deleted when the browser is closed).

so I would have expected to be able to set ttl explicitly to null (like in this example taken from the tutorial):

server.state('data', { ttl: null, .... });

but this throws the error

[1] ttl must be a number

(at Object.exports.assert (..../hoek/lib/index.js:425:11) at Object.exports.assert (..../lib/schema.js:15:10) at internals.Server.state (..../lib/server.js:481:16)

@hueniverse hueniverse added the bug label Aug 6, 2014
@hueniverse hueniverse self-assigned this Aug 6, 2014
@hueniverse hueniverse added this to the 6.5.0 milestone Aug 6, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

No branches or pull requests

2 participants