Forum: Ruby on Rails dynamic session domain

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wiktor -. (Guest)
on 2006-06-02 22: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 => "." +'.')[-3..-1].join('.')

This topic is locked and can not be replied to.