unset cookie value if set(name, val) is called with val = Null #736

Closed
anonymous-piwik-user opened this Issue May 18, 2009 · 7 comments

3 participants

@anonymous-piwik-user

There should be a way to unset single cookie values.

I think it should be ok to unset a cookie value if the set method is called with a Null value.

This would save some bandwidth on multipage-installs with the next version of the BlockingCookie plugin.

@robocoder

Set the cookie expiry in the past. The browser, however, may not delete it until it exits.

In any case, we plan to implement first party cookies.

@anonymous-piwik-user

single values, I don't want to delete the whole cookie.

I want to delete a specific value from a cookie, only one without affecting others.

@mattab
Piwik Open Source Analytics member

black silence, please submit a patch and we'll consider...

@anonymous-piwik-user

Attachment: patch to remove a single value from a cookie
unset_cookie_value.patch

@anonymous-piwik-user

here you go. this patch will unset a cookie value if the set() method is called with a Null value

@mattab
Piwik Open Source Analytics member

looks good to me

@robocoder

(In [1238]) fixes #736 - feature request to unset cookie value via set(name, null)

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 0.4.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment