Hi Ray,
Thanks for the explanation this is very helpful, i'd like to update our documentation[1] and want to ensure i understand this correctly. Is the following be correct
# Timeout level
If maxTimeToLiveInSeconds is specified at the timeout level as in the following example, then it takes precedence over all other settings and creates a hard expiration policy such that a users session will always be killed after this time is reached
```
cas.ticket.tgt.timeout.maxTimeToLiveInSeconds=86400
```
With this configuration a user will have to re-authenticate after 1 day (86400 seconds)
# Default level
When setting maxTimeToLiveInSeconds and timeToKillInSeconds at the default level as in the following example. A sliding window is created such that an applications TGT is valid for a week (640800 seconds) as long as some activity occurs every hour (3600 seconds)
```
cas.ticket.tgt.timeToKillInSeconds=3600
cas.ticket.tgt.maxTimeToLiveInSeconds=640800
```
With theses setting a user will be required to re authenticate if either of the following occurs:
* there has been no activity with CAS within one hour
* On week after the user authenticated with CAS
# RemberMe
timeToKillInSeconds can also be set at the remberMe level as below. With this setting a user will be issued with a long term cookie instead of a session cookie. This long term cookie creates another sliding window where the users can keep the TGT while the long term rememberMe cookie was still valid. With the following settings and assuming the users ticks Remember Me, a TGT is valid for a week (640800 seconds) as long as some activity occurs every day (86400 seconds). If the users does not tick Remeber Me the behaviour is the same the above example, setting maxTimeToLiveInSeconds and timeToKillInSeconds at the default level
```
cas.ticket.tgt.timeToKillInSeconds=3600
cas.ticket.tgt.maxTimeToLiveInSeconds=640800
cas.ticket.tgt.rememberMe.enabled=true
cas.ticket.tgt.rememberMe.timeToKillInSeconds=86400
```
With theses setting and assuming the user checks the remember me box, they will have to reauthenticate if either of the following occurs:
* there has been no activity with CAS within one day
* On week after the user authenticated with CAS