如何在liferay中解决Forbidden问题?

时间:2014-01-29 13:37:52

标签: permissions liferay liferay-6

在liferay中,当登录用户不能连续工作30分钟时,他会在上面写一句话Don't refresh the page till you save it。但是如果用户刷新页面,他就会登录页面,如果他自己输入密码,他就会获得带有句子you don't have a permission to access the page的禁止页面。

如何在liferay中解决此问题?

2 个答案:

答案 0 :(得分:0)

检查portal-ext.properties中是否有任何这些配置值(此处带有默认值)可帮助您解决问题:

#
# Specify the maximum number of sessions allowed. A value of 0 or less than
# 0 will mean that there is no limit. A value greater than 0 will limit the
# number of sessions by invalidating newer sessions.
#
# This property is not used unless the session max allowed filter is
# enabled.
#
session.max.allowed=0

#
# Specify the number of minutes before a session expires. This value is
# always overridden by the value set in web.xml.
#
session.timeout=30

#
# 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=1

#
# 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=false

#
# Set this to true if the user is redirected to the default page when the
# session expires.
#
session.timeout.redirect.on.expire=false

很多易于配置的选项,但我不知道你会满意的结果。

答案 1 :(得分:0)

您确定同一个用户在会话超时后尝试登录吗?