title: How to fix "Invalid remember-me token (Series/token) mismatch" Error?
body: <p>I use Spring Security persistent logins. I persist the remember me token in my database. Sometimes I get the following error:</p>
  
  <pre><code>| Error 2013-07-02 13:54:14,859 [http-nio-8080-exec-2] ERROR [/buddyis].[gsp]  -  
  Servlet.service() for servlet [gsp] in context with path [/buddyis] threw exception
  Message: Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack.
  Line | Method
  -&gt;&gt; 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    722 | run . . . in java.lang.Thread 
  </code></pre>
  
  <p>In my Config.groovy:</p>
  
  <pre><code>grails.plugins.springsecurity.logout.handlerNames = [
  'rememberMeServices', 'securityContextLogoutHandler', 'mySecurityEventListener'
  ]
  grails.plugins.springsecurity.rememberMe.cookieName = 'RememberMe'
  grails.plugins.springsecurity.rememberMe.alwaysRemember = true
  grails.plugins.springsecurity.rememberMe.tokenValiditySeconds = 31536000 // 365 days
  grails.plugins.springsecurity.rememberMe.key = 'rememberMe'
  grails.plugins.springsecurity.rememberMe.persistent = true
  grails.plugins.springsecurity.rememberMe.persistentToken.domainClassName = 'mypackage.PersistentLogin'
  </code></pre>
  
  <p>How do I fix this error? What does it mean?</p>