BCJTI / ng2-cookies

Simple library to deal with cookies in Angular2
64 stars 31 forks source link

Get all attributes of object Cookie #25

Closed fernandocode closed 7 years ago

fernandocode commented 7 years ago

It is possible to get value expiresor createfrom a cookie with this library?

This information of print for example:

cookie

I noticed is only possible with the library to get the value of the Contentattribute of the print.

Tyxz commented 7 years ago

To get the expiration date from a cookie as it is, it is not possible with JavaScript. It should be possible to add an expiration date as a key value pair. You could use this library to add two cookies. One for the value, the other with the expiration date.