You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Michael Gentry (JIRA)" <ji...@apache.org> on 2014/07/31 18:08:38 UTC

[jira] [Created] (TAP5-2363) Add additional removeCookieValue() options to Cookies services.

Michael Gentry created TAP5-2363:
------------------------------------

             Summary: Add additional removeCookieValue() options to Cookies services.
                 Key: TAP5-2363
                 URL: https://issues.apache.org/jira/browse/TAP5-2363
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.3, 5.4
            Reporter: Michael Gentry
            Priority: Trivial


We have a shared T5 library for several of our applications and one of the cookies we created at path "/" via JavaScript (since it was shared among multiple apps at our domain), but we couldn't get the server to remove the cookie with the current Cookies API because T5 kept adding a longer path which wouldn't match the cookie.

Please update the Cookies API to include at least the path for removal, too.

The implementation should be something like this (based on 5.4 code):

    public void removeCookieValue(String name, String path)
    {
        getBuilder(name, null).setPath(path).delete();
    }

5.3 would be nice-to-have, too, if possible (and another maintenance release is coming out).

Thanks!




--
This message was sent by Atlassian JIRA
(v6.2#6252)