The cookeWriter feature allow publisher to write cookie on the origin.
Right now, the expiration date is by default set to 1 year. We need to provide a way for publisher's to customize the cookie expiration date.
Proposed configuration
'cookies': {
'cookieMaxAge': 365*24*3600,
'keyValue1': {
'value': 'QEURY_PARAM(fake1)',
}
},
cookieMaxAge accepts a number unit in second. Which is the cookie will be expired after that amount of time.
Put cookieMaxAge: 604800 (604800=606024*7) if one wants the cooke to expire after 7 days.
cc @zikas