Store portal language in _language user session key
See #1764 (closed)
My approach is the following:
- Store the value of llnglanguage in _language session key during login
- When the user changes the language in portal, shoot an AJAX query using /mysession to update the session
I had to extend /mysession to allow modification of the global session and not just persistent session.
I would like your opinion on this approach?
Also, I suck at coffeescript, do you guys know a way to test whether or not the user is not logged in? Currently, if you change language on the login form, the /mysession call fails with 401 (not an dramatic issue, but if we can avoid it, it's probably best)