Having some issues with setting a cookie to expire on window close
Keen provide some good utilities such as Keen.utils.cookie('sessioncookie')
However I'm still struggling. If anyone could point me in the right direction I would appreciate it.
Having some issues with setting a cookie to expire on window close
Keen provide some good utilities such as Keen.utils.cookie('sessioncookie')
However I'm still struggling. If anyone could point me in the right direction I would appreciate it.
The Keen IO keen-js library and keen-tracking JavaScript library uses js-cookie under the hood. js-cookie is a simple, lightweight JavaScript API for handling browser cookies.
The js-cookie library will remove cookies by default when the browser is closed, unless an expiration value is set. This shows where to set that here: https://github.com/js-cookie/js-cookie/blob/master/README.md#expires