<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to update cookie Expiry for GUEST_LANGUAGE_ID and COOKIE_SUPPORT cookie</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120740590" />
  <subtitle>How to update cookie Expiry for GUEST_LANGUAGE_ID and COOKIE_SUPPORT cookie</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120740590</id>
  <updated>2026-04-05T22:49:32Z</updated>
  <dc:date>2026-04-05T22:49:32Z</dc:date>
  <entry>
    <title>RE: How to update cookie Expiry for GUEST_LANGUAGE_ID and COOKIE_SUPPORT co</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120745102" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120745102</id>
    <updated>2021-04-27T09:40:35Z</updated>
    <published>2021-04-27T09:38:41Z</published>
    <summary type="html">&lt;p&gt;Based on &lt;a
    href="https://github.com/liferay/liferay-portal/blob/7.3.x/portal-impl/src/com/liferay/portal/language/LanguageImpl.java#L1712"&gt;the
    only place&lt;/a&gt; where I found the Language Cookie to be set, and the
  painfully &lt;a
    href="https://github.com/liferay/liferay-portal/blob/7.3.x/portal-kernel/src/com/liferay/portal/kernel/util/CookieKeys.java#L49"&gt;hardcoded
    definition of MAX_AGE&lt;/a&gt;, your best bet is if you can introduce a
  filter that intercepts the cookie being set, and changes its max age.
  Or override LanguageImpl, but that sounds less tempting than the filter.&lt;/p&gt;
&lt;p&gt;On a positive note: Both cookies are not suspect for any
  profiling/tracing and absolutely non-personalized. But I don't know
  the details about the french law and what exactly it demands.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-04-27T09:38:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to update cookie Expiry for GUEST_LANGUAGE_ID and COOKIE_SUPPORT co</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120740613" />
    <author>
      <name>bhargavi m</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120740613</id>
    <updated>2021-04-26T11:30:30Z</updated>
    <published>2021-04-26T11:30:30Z</published>
    <summary type="html">&lt;p&gt;These two cookies are marked HttpOnly&lt;/p&gt;
&lt;p&gt;I also tried to Update using document.cookie JS but, it is creating
  new cookie, Instead of updating original&lt;/p&gt;</summary>
    <dc:creator>bhargavi m</dc:creator>
    <dc:date>2021-04-26T11:30:30Z</dc:date>
  </entry>
  <entry>
    <title>How to update cookie Expiry for GUEST_LANGUAGE_ID and COOKIE_SUPPORT cookie</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120740589" />
    <author>
      <name>bhargavi m</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120740589</id>
    <updated>2021-04-26T11:16:00Z</updated>
    <published>2021-04-26T11:16:00Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As part of our new cookie policy implementation, we should follow
  FRENCH LAW and not to store cookies more than 6 months.&lt;/p&gt;
&lt;p&gt;I could implement this for Google nalytics and other custom cookies&lt;/p&gt;
&lt;p&gt;But when coming to liferay generated cookies &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Calibri , sans-serif;"&gt;
      &lt;span style="color: rgb(31,73,125);"&gt;GUEST_LANGUAGE_ID and
        COOKIE_SUPPORT these are set to 1 year and not able to update them.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kindly let me know if there is any way to update.&lt;/p&gt;
&lt;p&gt;I already tried below properties, but i donw see that met my requirement&lt;/p&gt;
&lt;div class="WordSection1"&gt;
  &lt;p style="margin-top: 3.0px;margin-bottom: 3.0px;"&gt;
    &lt;span style="page: WordSection1;"&gt;
      &lt;span style="font-size: 11.0pt;"&gt;
        &lt;span style="line-height: normal;"&gt;
          &lt;span style=""&gt;
            &lt;span style="font-family: Calibri , sans-serif;"&gt;
              &lt;span style="font-size: 9.0pt;"&gt;
                &lt;span
                    style="font-family: &amp;quot;Times New Roman&amp;quot; , serif;"&gt;cookie.http.only.names.&lt;span style="color: rgb(134,59,0);"&gt;excludes&lt;/span&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p style="margin-top: 3.0px;margin-bottom: 3.0px;"&gt;
    &lt;span style="page: WordSection1;"&gt;
      &lt;span style="font-size: 11.0pt;"&gt;
        &lt;span style="line-height: normal;"&gt;
          &lt;span style=""&gt;
            &lt;span style="font-family: Calibri , sans-serif;"&gt;
              &lt;span style="font-size: 9.0pt;"&gt;
                &lt;span
                    style="font-family: &amp;quot;Times New Roman&amp;quot; , serif;"&gt;company.security.auto.login.max.&lt;span
                    style="color: rgb(134,59,0);"&gt;age&lt;/span&gt;=&lt;span style="color: rgb(0,114,0);"&gt;15552000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p style="margin-top: 3.0px;margin-bottom: 3.0px;"&gt; &lt;/p&gt;
  &lt;p style="margin-top: 3.0px;margin-bottom: 3.0px;"&gt;Thank you,&lt;/p&gt;
  &lt;p style="margin-top: 3.0px;margin-bottom: 3.0px;"&gt;Bhargavi&lt;/p&gt;&lt;/div&gt;</summary>
    <dc:creator>bhargavi m</dc:creator>
    <dc:date>2021-04-26T11:16:00Z</dc:date>
  </entry>
</feed>
