Skip to content

Instantly share code, notes, and snippets.

@danbev
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbev/61432960b7a25c73bc54 to your computer and use it in GitHub Desktop.
Save danbev/61432960b7a25c73bc54 to your computer and use it in GitHub Desktop.
ProxyServlet setting cookies

The issue I'm seeing is that I'm not able to get the proxy to set a cookie, any cookie, but JSESSIONID in particular. The test I've run is with a target application that does basic authentication.

The client sends the credentials correctly and the users is logged in correctly, and I can see the following header from the backend:

JSESSIONID=v6OmD_TlluOcpSFr0GcpkqnR.dhcp-208-183; path=/backend-system-path

Since client only knows about the proxy, this will not be set by the browser. Instead we want something like ProxyPassReverseCookiePath, ProxyPassReverseDomain like mod_proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment