Problem with sessions subdomains and authlogic in Rails.

Posted by Alfred Nerstu on Stack Overflow See other posts from Stack Overflow or by Alfred Nerstu
Published on 2010-03-13T13:49:05Z Indexed on 2010/03/13 13:55 UTC
Read the original article Hit count: 638

I've got a rails app with authlogic authentication and a username.domain.com structure built with subdomain-fu.

But my session breaks when going from domain.com to username.domain.com. I've tried to add

config.action_controller.session = {:domain => '.localhost:3000'}

to my development.rb but that seams to break authlogic disabling sign out/sign in.

Any suggestions on what to do?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about session

Related posts about wildcard-subdomain