jshttp / cookie

HTTP server cookie parsing and serialization
MIT License
1.36k stars 159 forks source link

[Feature] get expiry date or time for a cookie #113

Closed raminjafary closed 4 years ago

raminjafary commented 4 years ago

I think it would be great if there was a way to get expiry date or time for a given cookie. When one is using SSR, there are times one need to know expiration date to schedule some tasks on the client. I want to work on this issue if you are still maintaining this module, or does it fit in your plan scope.

dougwilson commented 4 years ago

Unfortunately this is not possible to do; the only data the client sends to the server is the cookie's name and value.