We have configured SAML Authn handler in our AEM 6.5 . We have a public page with a login page link. When the link is clicked , SAML login is initiated and we get redirected to Okta login page. At this time value of "saml_request_path" cookie is the encoded URL of public page. After Okta authentication, SAML response is submitted to ACS service configured in AEM viz. "/content/test/saml_login" . When the response is submitted to ACS service, value of "saml_request_path" cookie changes to the URL of login page and we get redirected to the login page, instead of the public page from where login was started. I think if the cookie value does not change on response POST to AEM then we would be redirected to correct page.
Any hints on why value of "saml_request_path" cookie changes on SAML response receipt by AEM ?