Ahoj,
ad2, Pro prodloužení timeoutu je nejlepší:
I, editovat liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/web.xml a vymazat tyto řádky:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
II, a nastavit do souboru liferay/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/portal-ext.properties jak chceme, aby session reagovala, např:
#
# Specify the number of minutes before a session expires. This value is
# always overridden by the value set in web.xml.
#
session.timeout=60
#
# Specify the number of minutes before a warning is sent to the user
# informing the user of the session expiration. Specify 0 to disable any
# warnings.
#
session.timeout.warning=0
#
# Set the auto-extend mode to true to avoid having to ask the user whether
# to extend the session or not. Instead it will be automatically extended.
# The purpose of this mode is to keep the session open as long as the user
# browser is open and with a portal page loaded. It is recommended to use
# this setting along with a smaller "session.timeout", such as 5 minutes for
# better performance.
#
session.timeout.auto.extend=true
Více na
wiki portal-ext.propertiesad 3, Nevím o tom, že by existoval pro Liferay 5.2.3 podobný mechanismus, možná v 6 už bude. Vím, že se to řeší podobně jako ostatních prvků, tj. exportovat stránky organizace pomocí LAR a naimportovat je do cílové organizace. Bohužel v 5.2.3 LAR export není příliš spolehlivý, ale za zkoušku člověk nic nedá (když si před tím provede zálohu DB ;) )
-- tom
Please sign in to flag this as inappropriate.