You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Ben Weidig (Jira)" <ji...@apache.org> on 2022/06/05 11:23:00 UTC

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

     [ https://issues.apache.org/jira/browse/TAP5-2363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Weidig resolved TAP5-2363.
------------------------------
    Resolution: Won't Do

Superceded by org.apache.tapestry5.CookieBuilder

> 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
(v8.20.7#820007)