subdomain-fu

Problem with sessions, subdomains and authlogic in Rails

戏子无情 提交于 2020-01-01 14:58:36
问题 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! 回答1: you are having this issue in the development mode but probably wont have this issue in

subdomain and domain routing

筅森魡賤 提交于 2019-12-06 12:35:29
问题 I use the subdomain to indicate the product eg. nexusphone.site.com . When a user types in that url I render the product/show view of that product. Users can also use domainnames eg www.nexusphone or nexusphone.com to render that product/show view. www.site.com or site.com should render the home view which explains what my site is about. I basically want to render the home view when www.site.com or site.com is entered. In all other cases I want to render the product/show view. In my routes I

subdomain and domain routing

99封情书 提交于 2019-12-04 18:18:44
I use the subdomain to indicate the product eg. nexusphone.site.com . When a user types in that url I render the product/show view of that product. Users can also use domainnames eg www.nexusphone or nexusphone.com to render that product/show view. www.site.com or site.com should render the home view which explains what my site is about. I basically want to render the home view when www.site.com or site.com is entered. In all other cases I want to render the product/show view. In my routes I have map.club_root '', :controller => 'products', :action => 'show', :conditions => { :subdomain => /.+

Problem with sessions, subdomains and authlogic in Rails

时间秒杀一切 提交于 2019-12-04 11:55:48
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! you are having this issue in the development mode but probably wont have this issue in prod mode.. you are trying to set the top level cookie. your browser wont let you do that. what you are trying