cookie-consent
cookie-consent copied to clipboard
AWSALB cookies are being removed
We have found that when consent for cookies is rejected or withdrawn, our AWSALB cookie is being removed along with the intended analytics cookies. This is causing user sessions to be lost. The deleteCookies() function contains this logic and only excludes the nhsuk-cookie-consent cookie.
I'm not a dev on the project and maybe I've misunderstood the question, but I would suspect this is by design - if the user has rejected cookies, they're rejecting all cookies not essential to the site actually functioning, such as session cookies, and unfortunately for us web devs those non-essential cookies includes analytics.
Hi, the AWSALB cookie is essential as load balancing relies on it.
@jeanniebrady this is a duplicate of https://github.com/nhsuk/cookie-consent/issues/102