You may also take a look at the /ROOT/WEB-INF/web.xml, the following part:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
Also in portal-ext.properties:
session.timeout=30
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
For a custom handler I would try to modify the \liferay-portal-6.0.5\tomcat-6.0.26\webapps\ROOT\html\common\themes\session_timeout.jspf
:
Something like this:
<c:choose>
<c:when test="<%= themeDisplay.getScopeGroup().getName().equals("MyCustomCommunity_1") %>">
<aui:script use="liferay-session">
Liferay.Session.init(
{
autoExtend: false /*my custom value*/,
timeout: 5 /*my custom value*/,
timeoutWarning: 0 /*my custom value*/,
redirectOnExpire: '/web/guest/mycustompage1' /*my custom value*/
}
);
</aui:script>
</c:when>
<c:when test="<%= themeDisplay.getScopeGroup().getName().equals("MyCustomCommunity_2") %>">
<aui:script use="liferay-session">
Liferay.Session.init(
{
autoExtend: true /*my custom value*/,
timeout: 15 /*my custom value*/,
timeoutWarning: 1 /*my custom value*/,
redirectOnExpire: '/web/guest/mycustompage2' /*my custom value*/
}
);
</aui:script>
</c:when>
<c:otherwise>
<aui:script use="liferay-session">
Liferay.Session.init(
{
autoExtend: <%= PropsValues.SESSION_TIMEOUT_AUTO_EXTEND %>,
timeout: <%= sessionTimeout %>,
timeoutWarning: <%= sessionTimeoutWarning %>,
redirectOnExpire: <%= PropsValues.SESSION_TIMEOUT_REDIRECT_ON_EXPIRE %>
}
);
</aui:script>
</c:otherwise>
</c:choose>