<?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>SignOut not able to clear cookies:  ArrayIndexOutOfBounds exception</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111064430" />
  <subtitle>SignOut not able to clear cookies:  ArrayIndexOutOfBounds exception</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111064430</id>
  <updated>2026-04-03T18:34:45Z</updated>
  <dc:date>2026-04-03T18:34:45Z</dc:date>
  <entry>
    <title>RE: SignOut not able to clear cookies:  ArrayIndexOutOfBounds exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111273042" />
    <author>
      <name>Tomáš Polešovský</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111273042</id>
    <updated>2018-10-22T13:04:36Z</updated>
    <published>2018-10-22T13:04:36Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;thas was fixed in  DXP 7.0 SP7.&lt;br /&gt;&lt;br /&gt;Both of your environments are running DXP 7.0 SP3, you need to update portal.&lt;br /&gt;&lt;br /&gt;​​​​​​​-- tom +</summary>
    <dc:creator>Tomáš Polešovský</dc:creator>
    <dc:date>2018-10-22T13:04:36Z</dc:date>
  </entry>
  <entry>
    <title>SignOut not able to clear cookies:  ArrayIndexOutOfBounds exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111064429" />
    <author>
      <name>Neelesh Sahay</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111064429</id>
    <updated>2018-09-28T15:03:21Z</updated>
    <published>2018-09-28T15:03:21Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We were having issues clearing cookies after Sign Out has been clicked.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Initially, we configured it the Control Panel -&amp;gt; System Settings
  -&amp;gt; Token Based SSO settings. It did not work there.&lt;/p&gt;
&lt;p&gt;After doing some research on these forums, we came across a solution
  involving creating a servlet and deploying that in liferay. &lt;/p&gt;
&lt;p&gt;This worked fine in our Dev environment, but when we deployed it in
  INT, we came across the following error.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span&gt;
    &lt;span&gt;
      &lt;span&gt;
        &lt;span&gt;
          &lt;span&gt;[TokenLogoutAction:116]
            java.lang.ArrayIndexOutOfBoundsException: 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
  &lt;p&gt;
    &lt;span&gt;
      &lt;span&gt;
        &lt;span&gt;
          &lt;span&gt;
            &lt;span&gt;java.lang.ArrayIndexOutOfBoundsException: 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;
    &lt;span&gt;
      &lt;span&gt;
        &lt;span&gt;
          &lt;span&gt;
            &lt;span&gt;            at com.liferay.portal.security.sso.token.internal.events.RedirectLogoutProcessor.logout(RedirectLogoutProcessor.java:51)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;
    &lt;span&gt;
      &lt;span&gt;
        &lt;span&gt;
          &lt;span&gt;
            &lt;span&gt;            at com.liferay.portal.security.sso.token.internal.events.TokenLogoutAction.run(TokenLogoutAction.java:110)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;Now we see that there was a bug in liferay for this issue, but it is
  also been shown as resolved.&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://issues.liferay.com/browse/LPS-78277"&gt;https://issues.liferay.com/browse/LPS-78277&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The difference that I am seeing in our environments is the version of tomcat.&lt;/p&gt;
&lt;p&gt;DEV: liferay-dxp-digital-enterprise-7.0-sp3 with &lt;strong&gt;tomcat-8.0.32&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;INT:  liferay-dxp-digital-enterprise-7.0-sp3 with &lt;strong&gt;tomcat-8.0.43 &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;As developers, we do not have permission to install in INT, but from
  what I can tell, the tomcat version in INT (and subsequently in PROD)
  is newer. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Has the above mentioned bug been fixed for this version as well? If
  not, is there a work around or another solution?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We need to resolve this as soon as possible since this has been
  flagged as a critical security issue. We are using Shibboleth SSO. &lt;/p&gt;
&lt;p&gt;Sign on works just fine, it is the sign out which is causing the issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Neelesh Sahay</dc:creator>
    <dc:date>2018-09-28T15:03:21Z</dc:date>
  </entry>
</feed>
