Hi, I'm building an ecommerce app with a login for customers, another for admin.
So I have 2 Devise models - customers and admin.
When I login with customers or just admin, everything works fine.
However in the same browser storing in the same cookie if I login as a customer AND as admin I get the following error on the second login:
ActionDispatch::Cookies::CookieOverflow
So it seems 2 logins on 2 models, same browser, storing in same cookie leads to a CookieOverflow error message, i.e. I've exceeded the 4k cookie limit.
I looked on Stack Overflow and the common solution recommended to this issue is use a different store. This app is in Rails 4.
Is there a way to get around this without having to use the db or memcache as the store. Thanks in advance for any pointers.