Rails 4 Sessions and ActiveAdmin
I have a Ruby on Rails 4 application. Also use ActiveAdmin and Devise.
Create user information in the session. I have 2 models. User and administrator. They each have their own plugins.
Problem: if I logged in as a user and try to log in as Admin, then create current_client and current_admin in the current session. Sessions are stored in cookies eg. '_ APP_SESSION . How can I share cookies and store user session in '_ app_session' and admin session in '_ app_admin_session' ?
+3
source to share
No one has answered this question yet
Check out similar questions: