Forum: Ruby on Rails dynamic session domain

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2ffdedc7137356f48e5bfcb00fce991a?d=identicon&s=25 Wiktor --- (iktorn)
on 2006-06-02 20:15
I'm trying to use one Rails app on different domains at the same time. I
also use subdomains. According to some tip I use:

session :session_domain => '.domain.tld'

in application.rb

How can I access request object so I can do:

session :session_domain => "." +
request.host.split('.')[-3..-1].join('.')


Thanks
This topic is locked and can not be replied to.