Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
anonymous-piwik-user opened this Issue · 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
Collaborator

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
Owner

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
Owner

looks good to me

@robocoder
Collaborator

(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
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.