Skip to content

[cache] Use the user's session for languages

Jookia requested to merge Jookia/website:RFC_langfixes2 into master

It turns out PluXml doesn't use cookies for languages. It uses sessions, updating them when the user goes to /lang=. That way going to a page in French won't set your language.

Instead a cookies store the last viewed language. I have no idea why this is done. The newer plxMyMultiLingue doesn't store a cookie.

Cookies in fact can't be used because when going to /lang= it redirects you, and some browsers (including Firefox) ignore the new cookie values in redirects.

How did I miss going to /lang= not working since that's how all the language selection buttons work? I don't know. I'm as confused as you

Merge request reports