We are running into a session bug having to do with Tuckey URL Rewrites (via proxy). We are running a 3.6.2 site.
We have Tuckey rewriting URLs that looks like this:
www.website.com/products?region=US&lang=1 to look like this:
www.website.com/us/en/products. We are handling this via a proxy rewrite in Tuckey. So far, so good. All pages display the right content for the right region in the right language.
We are authenticating users against a third-party legacy data service, using a DotCMS user session. This works correctly as well.
But if a user attempts to access a Tuckey-rewritten URL, their session seems to magically disappear. If we manually remove the tuckey-additions from the URL, the session magically comes back and they are logged in once again.
Digging into this yesterday, we figured out that the IP address attached to a user session on a normal URL is different from the IP address attached to a session when using a Tuckey URL. It looks like Tuckey proxying is grabbing either the local IP address or the IP address of a CDN server between the user and the DotCMS server.
So, here's the question...
What can we do to preserve the user session and our SEO-friendly URLs? Is this something we can change in the Tuckey plugin, or something we can change with Apache settings? Is there something we can do in DotCMS itself?
Ryan