Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Thomas Kellerer
Disable use of GUEST_LANGUAGE_ID cookie
April 18, 2012 6:50 AM
Answer

Thomas Kellerer

Rank: Expert

Posts: 377

Join Date: June 9, 2008

Recent Posts

Hello,

is there a way to completely disable the setting (and evaluation) of the GUEST_LANGUAGE_ID cookie?

We would like to either show the portal in the default langauge or by letting the user explicitely choose one language (which results in a /en/... or /de/... and thus does not need the cookie).

When displaying the default portal language any previous GUEST_LANGUAGE_ID cookie interferes with that (e.g. after logging out), so we would like to complete disable the usage of that cookie.

Is that possible?

Or do we need to intercept somewhere else?

Thanks
Thomas
Jelmer Kuperus
RE: Disable use of GUEST_LANGUAGE_ID cookie
April 21, 2012 2:26 PM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

I looked through the code. There does not seem to be a way to do it via configuration. It would be doable via code by extending ServicePreAction and changing the behavior of initThemeDisplay. Personally i'd like to see a property that allows you to disable this. You could file an improvement request in jira