lazojs / lazo

A client-server web framework built on Node.js that allows front-end developers to easily create a 100% SEO compliant, component MVC structured web application with an optimized first page load.
MIT License
366 stars 48 forks source link

cookie options are inconsistent across server and client #159

Open rodfernandez opened 9 years ago

rodfernandez commented 9 years ago

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 commented 9 years ago

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