Displaying 1 result from an estimated 1 matches for "before_dispatch".
2008 Dec 18
0
Multiple top level domains and one session
Hello all,
I''ve been struggling with this for quite awhile and haven''t been able to
find a solution. I need a user to be able to view multiple top level
domains with a single login.
My understanding is that this needs to be set in environment.rb and
called with before_dispatch. This is what I''ve come up with:
require ''activesupport''
require ''dispatcher''
module ActionController
class Dispatcher
def set_session_domain
ActionController::Base.session_options.update :session_domain =>
"#{@request.ho...