Hi,

I have been trying to implement Remember Me functionality in our CAS 
application. However it doesn't work and I am not sure why. From the logs, 
I can see that the cookie is created.

 DEBUG [org.apereo.cas.web.support.CookieRetrievingCookieGenerator] - 
<Locating request parameter [rememberMe] with value [true]>
 DEBUG [org.apereo.cas.web.support.CookieRetrievingCookieGenerator] - <Is 
this request from a remember-me authentication event? [yes]>
 DEBUG [org.apereo.cas.web.support.CookieRetrievingCookieGenerator] - 
<Creating cookie [TGC] for remember-me authentication with max-age 
[1209600]>

The user gets authenticated fine however the user gets logged out when the 
session expires. Here are the relevant properties. I set cas.tgc.secure to 
false for the local environment only.

cas.tgc.maxAge=-1
cas.tgc.name=TGC
cas.tgc.secure=false
cas.tgc.httpOnly=false
cas.tgc.rememberMeMaxAge=1209600
cas.tgc.path=/cas
cas.tgc.domain=/cas

cas.ticket.tgt.rememberMe.enabled=true
cas.ticket.tgt.rememberMe.timeToKillInSeconds=28800

Could someone point me in the right direction? I did read the documentation 
but I'm still unsure if all my properties are correct or if I need to do 
anything else.

Let me know if you need more information about configuration, logs etc.

Thanks.
Laura

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3615a224-c38e-4fd7-822e-a2ce17cc2bd3%40apereo.org.

Reply via email to