Skip to content

Commit 9776819

Browse files
author
patched.codes[bot]
committed
Patched src/com/ibm/security/appscan/altoromutual/servlet/LoginServlet.java
1 parent 97f2155 commit 9776819

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/com/ibm/security/appscan/altoromutual/servlet/LoginServlet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
9292
//Handle the cookie using ServletUtil.establishSession(String)
9393
try{
9494
Cookie accountCookie = ServletUtil.establishSession(username,session);
95+
accountCookie.setSecure(true);
96+
accountCookie.setHttpOnly(true);
9597
response.addCookie(accountCookie);
9698
response.sendRedirect(request.getContextPath()+"/bank/main.jsp");
9799
}

0 commit comments

Comments
 (0)