CAS(7)Cas登录过期时间
1、修改Cas Server的CASTGC过期时间
修改Cas Server下cas/WEB-INF/spring-configuration/ticketExpirationPolicies.xml(CASTGC的过期时间,单位为秒)
1 | <bean id="grantingTicketExpirationPolicy" class="org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy" |
2、修改Cas Client的Session过期时间
向Cas Client下WEB-INF/web.xml添加以下代码(Session过期时间,单位为分钟):
1 | <!-- ==================== Default Session Configuration ================= --> |