Saturday 18 March 2017

How to prevent url encoding of cookie value in node.js

I am using moment.js to create a datetime value, then set the value as a cookie.

I set the date with moment: moment().add(3, 'minutes').format() which results in : 2017-03-18T11:31:22-04:00

The date cookie value set in my browser is Url encoded automatically.

How can I prevent the Url encoding of the date cookie value set in the browser?

I am using Npm cookie to set the cookie value.

Browser=chrome



via user1526912

No comments:

Post a Comment