File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
spring-web/src/main/java/org/springframework/web/util Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2015 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -203,6 +203,12 @@ public void removeCookie(HttpServletResponse response) {
203
203
Assert .notNull (response , "HttpServletResponse must not be null" );
204
204
Cookie cookie = createCookie ("" );
205
205
cookie .setMaxAge (0 );
206
+ if (isCookieSecure ()) {
207
+ cookie .setSecure (true );
208
+ }
209
+ if (isCookieHttpOnly ()) {
210
+ cookie .setHttpOnly (true );
211
+ }
206
212
response .addCookie (cookie );
207
213
if (logger .isDebugEnabled ()) {
208
214
logger .debug ("Removed cookie with name [" + getCookieName () + "]" );
You can’t perform that action at this time.
0 commit comments