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 and 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=""></a>


Referenced by