Results 1 to 1 of 1

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

  1. #1
    Join Date
    Dec 2011
    Posts
    1

    Default rememberMeSvcs.loginSuccess() unpredictably sets cookie

    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 at 02:37 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •