Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails extension to help with cookies in a system with sub-domains

tree: ff2bfd80f6

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb

Sso What is used to generate a session domain for single sign-on which works regardless of subdomains and different hosts in different environments. So. If you have two servers, 'kill.for.thrills.hypo.luxa' and 'thrill.olympics.hypo.luxa', the session domain would resolve to 'hypo.luxa'.  

If your staging environment uses 'kill.for.thrills.alien.jourgensen' it will automatically use 'alien.jourgensen' without further configuration. 

To enable this feature set the session options on ActionController using the following line in your environment file:

config.action_controller.session = {:session_domain  => :base_host}

Shoulda and Mocha are required to run the tests.

Copyright (c) 2008 {Centro}[], released under the MIT license.

Authored by:

  {Gabriel Gironda}[]
  {Josh Davison}[]
Something went wrong with that request. Please try again.