mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
server: check and set sercure cookie flag only after login
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit 0f819f1583116d93ca3ebf460b69cd74144a25b2) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
20bcb4b673
commit
ed099c3f96
@ -194,6 +194,14 @@ public class ApiServlet extends HttpServlet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
session = req.getSession(true);
|
session = req.getSession(true);
|
||||||
|
if (ApiServer.isSecureSessionCookieEnabled()) {
|
||||||
|
resp.setHeader("SET-COOKIE", "JSESSIONID=" + session.getId() + ";Secure;Path=/client");
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
if (s_logger.isDebugEnabled()) {
|
||||||
|
s_logger.debug("Session cookie is marked secure!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user