CAS(7)Cas登录过期时间

1、修改Cas Server的CASTGC过期时间

修改Cas Server下cas/WEB-INF/spring-configuration/ticketExpirationPolicies.xml(CASTGC的过期时间,单位为秒)

1
2
3
<bean id="grantingTicketExpirationPolicy" class="org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy"
p:maxTimeToLiveInSeconds="28800"
p:timeToKillInSeconds="1800"/>

2、修改Cas Client的Session过期时间

向Cas Client下WEB-INF/web.xml添加以下代码(Session过期时间,单位为分钟):

1
2
3
4
5
6
7
<!-- ==================== Default Session Configuration ================= -->
<!-- You can set the default session timeout (in minutes) for all newly -->
<!-- created sessions by modifying the value below. -->

<session-config>
<session-timeout>30</session-timeout>
</session-config>
>