cross-subdomain sessionsSection: Ruby on Rails

If you want your session to be valid across multiple sub-domains, here is how you do it:

 config.action_controller.session = {

   :session_key => 'xxxxxxxxxxxxxxxx',
   :session_domain => 'domain.tdl',
   :secret => 'yyyyyyyyyyy'
}
 
 

 

 
Leave a comment

(Required)





(Required)
Sections 
- PHP (1)
- General (2)
- Ruby on Rails Snippet (3)
- Ruby on Rails (13)
- HTML (1)
- Css (1)
- regex (1)
- Photoshop (1)
- Leopard (1)
A little note to Internet Explorer users:
This site is not made for Internet Explorer. Some pages may look like shit. Yes, i could fix it for IE, but no, I'm not gonna do it. Try Opera or Firefox instead!