|
@@ -671,7 +671,7 @@ public abstract class Controller {
|
|
|
Cookie cookie = new Cookie(name, value);
|
|
Cookie cookie = new Cookie(name, value);
|
|
|
cookie.setMaxAge(maxAgeInSeconds);
|
|
cookie.setMaxAge(maxAgeInSeconds);
|
|
|
// set the default path value to "/"
|
|
// set the default path value to "/"
|
|
|
- if (path == null) {
|
|
|
|
|
|
|
+ if (StrKit.isBlank(path)) {
|
|
|
path = "/";
|
|
path = "/";
|
|
|
}
|
|
}
|
|
|
cookie.setPath(path);
|
|
cookie.setPath(path);
|