Announcement Announcement Module
Collapse
No announcement yet.
rememberMeSvcs.loginSuccess() sets cookie only if first call rememberMeSvcs.getXXX() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • rememberMeSvcs.loginSuccess() sets cookie only if first call rememberMeSvcs.getXXX()

    I'm manually invoking RememberMeServices.loginSuccess inside a customized UsernamePasswordAuthenticationFilter.attemptAuthen tication() method.

    The REMEMBER_ME cookie was not being set so I tried accessing the object before calling loginSuccess. At first I thought this was working but upon further testing it does not seem to be the case.

    Code:
    ((PersistentTokenBasedRememberMeServices) this.rememberMeServices).getKey();
    ((PersistentTokenBasedRememberMeServices) this.rememberMeServices).loginSuccess(request, response, authentication);
    Any idea what might contribute to the cookie being set some times but not others?
    Last edited by aprilsun; Dec 16th, 2011, 02:37 PM.
Working...
X