two sessions creating in rails devise with apartment gem

425 views Asked by At

I am using Apartment gem for multi tenant and devise gem for authentication every thing looks good and working fine but sometimes problem occurs when I login then devise did not take me to backend and redirect to home page.

Then I noticed in browser cookies that two session is created in local storage just like that

1: name: _newss_demo_store_session value: blablaa domain: .www.lvh.me

2: name: _newss_demo_store_session value: blabla domain: .lvh.me

And when I removed these cookies from browser then devise login take me to backend and everything start working. I did not found any solution please help or suggest any solution or If I did anything wrong.

Thanks

0

There are 0 answers