Session Auto-Extend Properties are now in Configuration

Hey, so in my blog last week, I indicated that I had the following in my portal-ext.properties file:

session.timeout=15
session.timeout.auto.extend=true
session.timeout.warning=0
session.timeout.auto.extend.offset=300

As I was writing the blog and flipping back and forth from the post to the browser where I was building stuff, some times I was still being logged out.

I didn't really pay much attention to it, I mean it's the typical annoyance we all deal with most of the time, so I just logged in and then continued working on the blog...

Well, today my friend and coworker Jorge Diaz reached out to me and let me know that those properties, they don't work anymore...

Instead, as of Liferay Portal GA104 and Liferay DXP 2024.Q1, session auto-extend properties have been moved into Configuration.

You can set the auto-extend from either Site Configuration (on a per-site basis), Instance Settings (on an all-sites-per-instance basis), or even at System Settings (to apply to everything).

In fact, here's my screen cap after enabling the Auto Extend in the Instance Settings:

I can confirm that the session properties from portal-ext.properties are completely ignored. This is unfortunate, I would have preferred if the properties were used to at least set the initial configuration, but that doesn't seem to be the case.

If you need auto-extend on the session, you'll have to go in and manually enable it (or you could use a .config file to push around to all environments).

To change the session timeout from the default 15 minutes still requires editing the web.xml file on each node and restarting the app server.