```ruby
# Be sure to restart your server when you modify this file.

options = if Rails.env.production?
  {domain: ['.glowfic.com', '.glowfic-staging.herokuapp.com']}
elsif Rails.env.development?
  {domain: '.localhost'}
else
  {}
end

Rails.application.config.session_store :cookie_store, key: '_glowfic_constellation_' + Rails.env, **options
```

Revert "Fix cookie domain problems by specifying domains manually"
user
```ruby
# Be sure to restart your server when you modify this file.

options = if Rails.env.production?
  {domain: 'glowfic.com', tld_length: 2}
elsif Rails.env.development?
  {domain: 'localhost', tld_length: 2}
else
  {}
end

Rails.application.config.session_store :cookie_store, key: '_glowfic_constellation_' + Rails.env, **options
```
assistant