You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Max-Age= Optional
Indicates the number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. If both Expires and Max-Age are set, Max-Age has precedence.
max-age thus always has preference and the whole computation of expires is ignored, so only the days field is taken into account.
The text was updated successfully, but these errors were encountered:
templates-assets/shared/js/libs/cookie.js
Line 59 in 4f45231
In
shoptet.cookie.create
bothexpires
andmax-age
fields are set, but the computation ofmax-age
doesn't take into account fields other thandays
.From MDN:
max-age
thus always has preference and the whole computation ofexpires
is ignored, so only thedays
field is taken into account.The text was updated successfully, but these errors were encountered: