On Fri, 30 May 2014, Zac Harvey wrote:

I looked in my ticketExpirationPolicies.xml:

   <!-- TicketGrantingTicketExpirationPolicy: Default as of 3.5 -->
   <!-- Provides both idle and hard timeouts, for instance 2 hour sliding window 
with an 8 hour max lifetime -->
   <bean id="grantingTicketExpirationPolicy" 
class="org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy"
         p:maxTimeToLiveInSeconds="${tgt.maxTimeToLiveInSeconds:28800}"
         p:timeToKillInSeconds="${tgt.timeToKillInSeconds:7200}"/>
</beans>

And those beans don't look like what the docs say here:

https://wiki.jasig.org/display/CASUM/HOWTO+Configure+Single+Sign+On+Session+Timeout

I would like to change my tickets to expire in 2 days (which is 172,800,000 millis). How can I do this?

The property "timeToKillInSeconds" that you can see above contains the timeout for the Ticket Granting Ticket. The notation above says:

  ${tgt.timeToKillInSeconds:7200}

This means to read value of the tgt.timeToKillInSeconds property in an external properties file. If no value is set, default to 7200 seconds (2 hours).

The location of the external properties file is defined in WEB-INF/spring-configuration/propertyFileConfigurer.xml. On my sytem, I have it defined as "/etc/cas/prod.properties". In that file, set:

  tgt.timeToKillInSeconds=57600

(57600 is 2 days in seconds).

        Andy

--
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

Reply via email to