<?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>Session Expiry in Custom User Login Portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112902893" />
  <subtitle>Session Expiry in Custom User Login Portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112902893</id>
  <updated>2026-04-03T21:26:44Z</updated>
  <dc:date>2026-04-03T21:26:44Z</dc:date>
  <entry>
    <title>RE: Session Expiry in Custom User Login Portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112929262" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112929262</id>
    <updated>2019-03-28T15:53:12Z</updated>
    <published>2019-03-28T15:53:12Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;It's possible that you have either persistent session storage enabled in your appserver &lt;br&gt;&lt;/blockquote&gt;Thank you, this was the reason. I fixed it by adding the property&lt;br&gt;&lt;pre&gt;&lt;code&gt;session.enable.persistent.cookies=false&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2019-03-28T15:53:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: Session Expiry in Custom User Login Portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112903851" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112903851</id>
    <updated>2019-03-26T17:09:53Z</updated>
    <published>2019-03-26T17:09:53Z</published>
    <summary type="html">&lt;blockquote&gt;Vishnu S KumarI&amp;#39;ve created a custom user login portlet exactly as shown in the following link&lt;br /&gt;&lt;br /&gt;https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/writing-a-custom-login-portlet&lt;br /&gt;&lt;br /&gt;The user sessions are still active even after restarting the server. We would like to keep the default session behaviour of the liferay i.e to sign out users after 30  minutes of inactivity. How do we customize this behaviour in the custom login portlet ?&lt;br /&gt;&lt;/blockquote&gt;It&amp;#39;s possible that you have either persistent session storage enabled in your appserver (e.g. sessions are serialized on shutdown, and deserialized after restart when needed). Another option is that your sessions (on the appserver) are longer than 30 minutes - 30 minutes is tomcat&amp;#39;s default, and I believe also Liferay&amp;#39;s own default. But by no means it&amp;#39;s a mandatory time.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-03-26T17:09:53Z</dc:date>
  </entry>
  <entry>
    <title>Session Expiry in Custom User Login Portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112902892" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112902892</id>
    <updated>2019-03-26T16:45:16Z</updated>
    <published>2019-03-26T16:45:16Z</published>
    <summary type="html">I&amp;#39;ve created a custom user login portlet exactly as shown in the following link&lt;br /&gt;&lt;br /&gt;https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/writing-a-custom-login-portlet&lt;br /&gt;&lt;br /&gt;The user sessions are still active even after restarting the server. We would like to keep the default session behaviour of the liferay i.e to sign out users after 30  minutes of inactivity. How do we customize this behaviour in the custom login portlet ?&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2019-03-26T16:45:16Z</dc:date>
  </entry>
</feed>
