How to prevent InvalidAuthenticityToken Exception when switching from :cookie_store to :active_record_store?

389 views Asked by At

I'm switching my session store from :cookie_store to :active_record_store. I've noticed when I first tried to log in I received an ActionController::InvalidAuthenticityToken. I'm guessing this is because of the cookie that exists on my computer from the old cookie_store? After I removed it from my chrome browser settings I was able to log in fine. I'd like to have a seemless way to keep all of my users from having to delete their cookies before they can log in correctly. But how would I do this?

0

There are 0 answers