You need to share the model devise session
Try this
Just modify the config/initializers/session_store.rb
Yourapp::Application.config.session_store :cookie_store, key: '_Yourapp_session', :domain => '.mywebsite.com'
It works on my applications.
UPDATE
For my answer above, I only tried in one application but different schema, and it works.
Devise model not works if you not put gem devise. :D
If different application, you need www.mywebsite.com access to database of mywebsite.com Or you can use SSO for your applications.
I think you need this :
- Multiple Applications with Devise, Omniauth and Single Sign On
- sso-devise-omniauth-provider
Some similar questions :
- Single logon with different applications approach ruby on rails
- How to pass devise sign_in information into different application with rails
- OmniAuth Single Sign On with Devise