{"action":"created","issue":{"url":"https://api.github.com/repos/ratpack/ratpack/issues/796","labels_url":"https://api.github.com/repos/ratpack/ratpack/issues/796/labels{/name}","comments_url":"https://api.github.com/repos/ratpack/ratpack/issues/796/comments","events_url":"https://api.github.com/repos/ratpack/ratpack/issues/796/events","html_url":"https://github.com/ratpack/ratpack/issues/796","id":109555886,"number":796,"title":"DefaultResponse#expireCookie does not set path","user":{"login":"donaldquixote","id":8946718,"avatar_url":"https://avatars.githubusercontent.com/u/8946718?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldquixote","html_url":"https://github.com/donaldquixote","followers_url":"https://api.github.com/users/donaldquixote/followers","following_url":"https://api.github.com/users/donaldquixote/following{/other_user}","gists_url":"https://api.github.com/users/donaldquixote/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldquixote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldquixote/subscriptions","organizations_url":"https://api.github.com/users/donaldquixote/orgs","repos_url":"https://api.github.com/users/donaldquixote/repos","events_url":"https://api.github.com/users/donaldquixote/events{/privacy}","received_events_url":"https://api.github.com/users/donaldquixote/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ratpack/ratpack/milestones/25","html_url":"https://github.com/ratpack/ratpack/milestones/release-1.1.0","labels_url":"https://api.github.com/repos/ratpack/ratpack/milestones/25/labels","id":1280859,"number":25,"title":"release-1.1.0","description":"","creator":{"login":"alkemist","id":17825,"avatar_url":"https://avatars.githubusercontent.com/u/17825?v=3","gravatar_id":"","url":"https://api.github.com/users/alkemist","html_url":"https://github.com/alkemist","followers_url":"https://api.github.com/users/alkemist/followers","following_url":"https://api.github.com/users/alkemist/following{/other_user}","gists_url":"https://api.github.com/users/alkemist/gists{/gist_id}","starred_url":"https://api.github.com/users/alkemist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkemist/subscriptions","organizations_url":"https://api.github.com/users/alkemist/orgs","repos_url":"https://api.github.com/users/alkemist/repos","events_url":"https://api.github.com/users/alkemist/events{/privacy}","received_events_url":"https://api.github.com/users/alkemist/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":14,"state":"open","created_at":"2015-08-30T22:08:04Z","updated_at":"2015-10-05T11:21:27Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-10-02T19:23:54Z","updated_at":"2015-10-05T16:51:00Z","closed_at":null,"body":"Browsers will not overwrite/delete a cookie unless both the name and path match. Furthermore, if two cookies have same name but different paths, the more specific path wins. The expireCookie method does not set a path, so cookies with a path set will not be deleted by the browser."},"comment":{"url":"https://api.github.com/repos/ratpack/ratpack/issues/comments/145596526","html_url":"https://github.com/ratpack/ratpack/issues/796#issuecomment-145596526","issue_url":"https://api.github.com/repos/ratpack/ratpack/issues/796","id":145596526,"user":{"login":"donaldquixote","id":8946718,"avatar_url":"https://avatars.githubusercontent.com/u/8946718?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldquixote","html_url":"https://github.com/donaldquixote","followers_url":"https://api.github.com/users/donaldquixote/followers","following_url":"https://api.github.com/users/donaldquixote/following{/other_user}","gists_url":"https://api.github.com/users/donaldquixote/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldquixote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldquixote/subscriptions","organizations_url":"https://api.github.com/users/donaldquixote/orgs","repos_url":"https://api.github.com/users/donaldquixote/repos","events_url":"https://api.github.com/users/donaldquixote/events{/privacy}","received_events_url":"https://api.github.com/users/donaldquixote/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T16:51:00Z","updated_at":"2015-10-05T16:51:00Z","body":"I'd love to, but I'm on a pretty tight deadline as is and wouldn't want to contribute without taking some time to really dig into the code. After brief investigation, it seems reasonable to pass a reference to the request when constructing DefaultResponse, which can then be checked for sent cookies, but I don't know if forming that dependency would be safe or reasonable in the context of your code base. "}}