Skip to content
Snippets Groups Projects
Commit a8bef3c8 authored by Scotty Logan's avatar Scotty Logan
Browse files

removed domain from cookies

parent 4a81614f
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,6 @@ public class ClearIdpCookieServlet extends HttpServlet { ...@@ -19,7 +19,6 @@ public class ClearIdpCookieServlet extends HttpServlet {
c.setMaxAge(0); c.setMaxAge(0);
c.setPath("/idp"); c.setPath("/idp");
c.setSecure(true); c.setSecure(true);
c.setDomain(req.getServerName());
res.addCookie(c); res.addCookie(c);
} }
......
...@@ -15,11 +15,11 @@ public class SetX509CookieServlet extends HttpServlet { ...@@ -15,11 +15,11 @@ public class SetX509CookieServlet extends HttpServlet {
@Override @Override
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException {
System.out.println("Servlet " + this.getServletName() + req.getRequestURI());
Cookie c = new Cookie("x509passthrough", "true"); Cookie c = new Cookie("x509passthrough", "true");
c.setMaxAge(86400 * 365 * 5); c.setMaxAge(86400 * 365 * 5);
c.setPath("/idp"); c.setPath("/");
c.setSecure(true); c.setSecure(true);
c.setDomain(req.getServerName());
res.addCookie(c); res.addCookie(c);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment