when declined the bar shows up at next page loading
Closed this issue · 4 comments
Is there a specific set-up for preventing the cookie bar to show up again when reloading the page even though it had been declined? or is it normal behaviour?
To reproduce:
Step 1) I load the home page and I click Decline on the cookie bar
Step 2) I reload the home page and the cookie bar shows up again, which I would like to prevent
@qkral thanks for reporting. I cannot reproduce this issue on example application. After clicking on "Decline" button and reloading page, I do not see cookie bar, screenshot:
From developer tools I see following cookie:
cookie_consent=social=-1|optional=-1
@qkral You might be using an older version of django-cookie-consent. Please update the a more recent version and try again.
You need to do the same thing in your template as this:
https://github.com/bmihelac/django-cookie-consent/blob/master/tests/core/templates/test_page.html
Also provide a traceback of any errors from your terminal if possible.
@qkral - does this issue still happen (on the latest version) and can you provide steps on how to reproduce this?
django-cookie-consent 0.4.0 is now on PyPI. Please reopen this issue if this problem still happens after upgrading.
