Hi, i've a problem with keeping the session between different
subdomains.

The subdomain itself works as expected, it's just the session which
isn't keep.

The url are like: http://username.users.localhost where username.users
is the subdomain, which i split and take the first part (username).

I need this to distinguish different requests (eg
username.users.localhost and name.blogs.localhost).

I've read that to solve this i've to set to share the domain in the
cookie, but i've tried theese and nothing worked :(

ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_domain] =
'.localhost'

ActionController::Base.session_options[:session_domain] = '.localhost'

and even config.action_controller.session.merge({:domain =>
'.localhost'})

i've tried both with '.localhost', 'localhost', '.users.localhost' and
'users.localhost', but nothing...

i'm running rails 2.2.2 with webrick (dev mode)... (in production i run
apache with passenger, but i haven't tried there yet)

Any idea on how i can solve this?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to