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

cookie options are inconsistent across server and client #159

Open
rodfernandez opened this issue Dec 23, 2014 · 1 comment
Open

cookie options are inconsistent across server and client #159

rodfernandez opened this issue Dec 23, 2014 · 1 comment

Comments

@rodfernandez
Copy link
Contributor

Context.prototype.setCookie and Context.prototype.clearCookie should accept de-normalized options before calling jquery-cookie or hapijs:

https://github.com/carhartl/jquery-cookie
https://github.com/hapijs/hapi/blob/v6.7.1/docs/Reference.md#serverstatename-options

Important: the default values also must be normalized.

@rodfernandez
Copy link
Contributor Author

TTL in hapijs are milliseconds and in jquery-cookie are days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant