marijn / CookieJar

1 stars 0 forks source link

Create object composition or inheritance chain around a basic Cookie object #7

Open marijn opened 13 years ago

marijn commented 13 years ago

Cookies that are read don't have a meaningful expiry date and path. Essentially the CookieJar.read method should return a stripped down version of the current Cookie implementation without the Cookie.getPath and Cookie.getExpires accessors. Those two methods should either be put in a sub-class or a composite object.

marijn commented 13 years ago

API Example:

var myCookie = CookieJar.read("my-cookie-name", new JsonValueTransformer());