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
cookies ruby-on-rails-4 session activeadmin


source to share


No one has answered this question yet

Check out similar questions:

867
How do I end PHP session after 30 minutes?
463
What's the best way to implement "remember me" for a website?
380
Cookie blocked / not saved in IFRAME in Internet Explorer
342
Invalid JSON token
296
What are sessions? How do they work?
202
"Keep Me Logged In" is the best approach
123
Cookies versus sessions
8
ActiveAdmin ForbiddenAttributesError
1
Create separate session for login rails admin



All Articles
Loading...
X
Show
Funny
Dev
Pics