sj26/rails-subdomain — Issue #3: Add intra-domain session configuration
Author: sj26
Created: 2012-03-09 00:32:13+00:00
State: open
Labels: enhancement

Adding `:domain => true` to session store configuration should be enough to set cookies with domain detected via request, but devise seems to choke on this. Investigate.

For now, this seems to work:

```ruby
class ApplicationController < ActionController::Base
before_filter :set_session_options_domain

protected

def set_session_options_domain
request.session_options[:domain] = request.domain
end
end
```