node.js - What is the difference between cookies maxAge and expiry -
I'm on nodes, Express App I'm using cookies for some of my app's features. I need to have cookies in a month.
For this purpose, I get the cookie maximum of the time in order to get a month's time of Even though the browser of my cookies is near 10 hours in the end. What am I missing, my calculation is wrong? Or am I using the wrong attribute ( In addition, Would you like to set the coolie are doing? res.cookie ('rememberme', '1', {maxAge: 900000, httpOnly: true}) day * hours; Every day * minutes * seconds * semester * 1000 is set
30 * 24 * 60 * 60 * 1000 =
2592000000 .
maximum edge )?
The maximum ad should be set in milliseconds (I was wrong, as I have referred to the client part).
Comments
Post a Comment