> Your web browser won't allow you to set a top level cookie (ie one
> on .localhost), to the web browser it's as if you tried to set one
> for .com

Hi Frederick, ok..so should it work in the production mode? where the 
session_domain would be like '.domain.com'


> In the app i'm working on right now environment.rb has
> 
> config.action_controller.session = {
>      :session_domain => "chat.local",
>      :session_key => '_hermes_session',
> ...
> }
> 
> and I share the same session across foo.chat.local, bar.chat.local
> 
> But it won't share it with any of the other apps that I work with (eg
> someotherapp.local). If you're trying to have username.users.localhost
> and name.blogs.localhost share sessions then that won't work just like
> that - the domain need to have more segments in common.

i've just updated to rails 2.3.2 and set the session inizializer:

config.action_controller.session = {
  :session_domain => "users.local",
  :session_key => '_app_session',
  :secret => '..............'}

But the session isn't shared with localhost and foo.users.localhost.. so 
i've tried to change another time the session_domain to ".users.local", 
"users.localhost", ".users.localhost", ".local", "local", ".localhost" 
and "localhost"....and nothing... the session isn't shared at all.
This is my subdomain config:

SubdomainFu.tld_sizes = { :development => 0,
                          :test => 2,
                          :production => 1 }

It's just a single app which serve everything, not more different apps 
for each subdomain. isn't possible neither in this case to have 
different subdomains (foo.users.domain.com and foo.blogs.domain.com for 
the production; foo.users.localhost and foo.blogs.localhost for the 
development)?
-- 
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