This project is archived and is in readonly mode.

#4818 ✓resolved
Guillermo Álvarez

Share session between subdomains

Reported by Guillermo Álvarez | June 10th, 2010 @ 10:58 AM

Sessions cookies don't hace domain, so by default navigators use current HTTP_HOSTS.

If you want to share session between www.example.com and username.example.com you can't.

The next patch resolve this problem by adding a domain option in session_store initializar.

The syntax is:

  Rails.application.config.session_store :cookie_store, :key => '_app_session', :domain => :all

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages