cookie related issue with a rewrite profile
I created the rewrite profile on the LTM, and assigned it to a VIP: Client URI: / Server URI: hostname.domainname/path
If I access the server directly (hostname.domainname/path), the JSESSIONID cookie remains the same with each page refresh, and the site works correctly.
If I access the server via the new URL that points to the VIP (https://newURL.com), the value of the JSESSIONID cookie changes with each page refresh. Also, I never see request cookies, just response cookies. So, though the cookie is being received by the browser, the browser does not appear to be using it. I tried adding a Set-Cookie rule to the rewrite rule based on the cookie contents, but this did not resolve the issue.
How can I get the browser to use the cookie that it ie receiving?