Skip to content

Commit

Permalink
Merge pull request playframework#486 from brakhane/lighthouse-1466-patch
Browse files Browse the repository at this point in the history
[playframework#1466] Remove cookies with maxAge from savedCookies
  • Loading branch information
pepite committed May 10, 2012
2 parents 5f97b46 + 8a0f1ae commit 60f4490
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/src/play/test/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ public InvocationContext getInvocationContext() {
// 0, they discard immediately.
if(e.getValue().maxAge == null || e.getValue().maxAge > 0) {
savedCookies.put(e.getKey(), e.getValue());
} else {
// cookies with maxAge zero still remove a previously existing cookie,
// like PLAY_FLASH.
savedCookies.remove(e.getKey());
}
}
response.out.flush();
Expand Down

0 comments on commit 60f4490

Please sign in to comment.