playframework/Play20 — pull request #469 by jroper (2012-09-28 08:09:09+00:00)
Title: [#752] Support discarding cookies on a particular path, domain and ensure Session/Flash cookies use this

This is a backwards incompatible change, because it means discardingCookies now accepts a list of DiscardingCookie, which gives the developer the ability to discard cookies that were set on a particular domain, path or with secure set.

It fixes a bug in that when application.context, session.domain or session.secure was set, it was impossible to clear the session, and flash cookies were completely screwed.

Also in this request I changed some vals to defs in CookieBaker, Session and Flash objects, so that I could test with different configurations.