环境: rails2.3.4
1.session 共享问题
development.rb
2.其他设置
environment.rb
1.session 共享问题
development.rb
ActionController::Base.session_options[:domain]=".example.com"
2.其他设置
environment.rb
SubdomainFu.tld_size = 1 # sets for current environment
SubdomainFu.mirrors = ["www"]
SubdomainFu.preferred_mirror = "www"
SubdomainFu.override_only_path = true
SubdomainFu.tld_sizes = {:development => 1,
:test => 0,
:production => 1} # set all at once (also the defaults)