You haven't missed anything as far as I can tell, but you didnt have to change the xml file. Simply changing properties in cas.properties by uncommenting them would have had the same effect and is arguably a cleaner approach.
-Misagh ----- Original Message ----- From: "cp" <[email protected]> To: [email protected] Sent: Friday, October 25, 2013 6:21:30 AM Subject: [cas-user] CAS 3.5.2 ticket expiration configuration problem Hi, I'm porting an application from 3.4.12 to 3.5.2. I'm testing the TGT expiration configuration. I want my TGT to expire after a minute, but instead it is valid until http session is not expired. In 3.4.12 this test worked. Here is my configuration in ticketExpirationPolicies.xml for 3.5.2. <!-- Expiration policies --> <util:constant id="SECONDS" static-field="java.util.concurrent.TimeUnit.SECONDS"/> <bean id="serviceTicketExpirationPolicy" class="org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutExpirationPolicy" c:numberOfUses="1" c:timeToKill="${st.timeToKillInSeconds:60}" c:timeUnit-ref="SECONDS"/> <bean id="grantingTicketExpirationPolicy" class="org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy" p:maxTimeToLiveInSeconds="${tgt.maxTimeToLiveInSeconds:60}" p:timeToKillInSeconds="${tgt.timeToKillInSeconds:60}" /> The st.timeToKillInSeconds, tgt.maxTimeToLiveInSeconds, tgt.timeToKillInSeconds properties in "cas.properties" file are commented. I restarted the cas webapp to apply the configuration. Did I miss something? Thanks in advance for your help. Cesare -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
