PingFederate Server

Override locale using cookies

You can use cookies to provide end users a way to temporarily override browser language preferences. For example, you could create a company web portal link for users to click instead of manually changing their browser options.

By default, the PingFederate localization framework supports overriding the locale using a cookie named pf-accept-language. The cookie value must conform to the guidelines defined under IETF BCP 47. Learn more about the Java core method that PingFederate uses to parse the cookie in Locale - forLanguageTag in the Java documentation.

This locale-override behavior is the default implementation of the Java interface, LocaleOverrideService, defined in the PingFederate SDK. Learn more in the Javadoc for that interface in the <pf_install>/pingfederate/sdk/doc directory.

PingFederate displays the language indicated in the cookie if the language is supported in the language-packs directory. If the matching localization file is not found, PingFederate defaults to the browser settings.