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 day * hours; Every day * minutes * seconds * semester * 1000 is set 30 * 24 * 60 * 60 * 1000 = 2592000000 .

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 ( maximum edge )?

In addition,

The maximum ad should be set in milliseconds (I was wrong, as I have referred to the client part).

Would you like to set the coolie are doing?

res.cookie ('rememberme', '1', {maxAge: 900000, httpOnly: true})

Comments

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -