title: Spring-boot security remember-me token not working
body: <p>For some reason I cannot get Spring-Security to work with remember-me.
  It never creates the cookie on the client side.</p>
  
  <p>Here is my login form</p>
  
  <p><code>&lt;input type="checkbox" name="_spring_security_remember_me"/&gt; Remember me</code></p>
  
  <p>also tried</p>
  
  <p><code>&lt;input type="checkbox" name="remember-me"/&gt; Remember me</code></p>
  
  <p>Here is my SecuritySettings</p>
  
  <pre><code>        http.authorizeRequests()
          ......
          .anyRequest().fullyAuthenticated()
          .and()
              .formLogin().loginPage("/login").failureUrl("/login?error").permitAll()
          .and()
              .logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout")).logoutSuccessUrl("/login")
          .and()
              .rememberMe()
              .tokenValiditySeconds(31536000);
  </code></pre>
  
  <p>I tried both my own custom form, and the built in Spring login form.. none work for remember me.</p>
  
  <p>The way I tested is, login, copy secured url, close browser, open browser and paste url.</p>