I'm front of some truble. I try to make the Devise Session cross domain.
First I set this line in session_store.rb
MyApp::Application.config.session_store :cookie_store, key: '_myapp_session', domain: "myapp.fr"
But that did not work. Second, I put these lines in environments/.rb
Mtaville::Application.config.session_store :cookie_store, key: '_myapp_session', domain: "devloc.myapp.fr:3000"
What the problem?
EDIT 1
I have 5 subdomain : admin, auto, immo, resto, actu I have 6 types of user (depend of main class User) Administrator, Agent, Realtor, Restorer, Author, User
All this type of user can connect in front office (without subdoamin) BUT Administrator can only log in admin subdomain, restorer only in resto subdomain....
For each subdomain, I have a controller with :
before_filter :authenticated_administrator!
before_filter :authenticated_restorer!
...
Do you know how I can manage the session ?