Issue with Kentico language selection with flags

David Tan asked on March 12, 2014 16:11

Hi,

I'm having a problem with the "language selection with flags" web part. It seems that Kentico keeps some kind of cache of the URL that were accessed. If the 1st time a page is accessed is with query string parameters, these parameters could be transfered into another user's session. Here's my situation:

1) I have a page “test” with nothing but a "language selection with flags" web part.

2) I access this page for the 1st time, with parameters. Ex: http://example/en-CA/test?abc=123&edf=456.

3) I access the same page on another browser (or another system) but without the parameters. http://example/en-CA/test

4) I switch language on the other browser. The URL becomes http://example/fr-CA/test?abc=123&edf=456 These parameters should not be transferred from one session to another. Only the language should change.

Recent Answers


Juraj Ondrus answered on March 13, 2014 05:54

Hi,

What version of Kentico do you use, please? Also, what caching options are used on this instance?

Could you please try adding this web.config key to make the cache items per domain as well?

<add key="CMSOutputCacheItems" value="username;sitename;lang;browser;cookielevel;deviceprofile;domain" />

Best regards,
Juraj Ondrus

0 votesVote for this answer Mark as a Correct answer

alagnoux Jean-Baptiste answered on March 28, 2014 11:33

Hi JURAJ

How are you, i'm working with David. seem to have no effect on the cache control......

Our problem is a the output cache level. do you have a solution to exclude from the cache the query string ?

The following scenario produce ou bug : 1) I have a page “test” with nothing but a "language selection with flags" web part. 2) I access this page for the 1st time, with parameters. Ex: http://example/en-CA/test?abc=123&edf=456. 3) I access the same page on another browser (or another system) but without the parameters. http://example/en-CA/test 4) I switch language on the other browser. The URL becomes http://example/fr-CA/test?abc=123&edf=456 These parameters should not be transferred from one session to another. Only the language should change.

The following scenario WORK normally : 1) I have a page “test” with nothing but a "language selection with flags" web part. 2) I access this page for the 1st time, with parameters. Ex: http://example/en-CA/test?abc=123&edf=456. 3) I CLEAR THE KENTICO CACHE 3) I access the same page on another browser (or another system) but without the parameters. http://example/en-CA/test 4) Kentico Keep the URL clean : http://example/en-CA/test and doe not add the previous query string

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 3, 2014 02:03

Hi,
Thank you for the details. As it turns out, after some further investigation, there seems to be a bug in the particular web part. Our developers are already looking into this issue and they will try it to fix it in the next hotfix package.

We are sorry for this inconvenience.

Best regards,
Juraj Ondrus

0 votesVote for this answer Mark as a Correct answer

Angel Milev answered on January 29, 2016 22:58

Hi Jiraj,

Our client is having similar issue when the URL parameters are being cached and after user changes languages sometimes they see old version of the page with the wrong url parameters. Was this issue resolved and if so in what version of Kentico? They are currently using Kentico 8.

Thanks, Angel Milev

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.