user_signed_in? not working when change subdomain

I am trying some different with devise

overload the devise session controller

Hi,

I am also working on a SAAS product. Please post you map.root line from your route.rb files. It seems that something is wrong with your route file. Either post the code of your route.rb (mainly the line map.root) or check it by yourself.

Thanks.

My route file:

Subdomain::Application.routes.draw do

  #devise_for :users   devise_for :users, :controllers => {:registrations => "registrations", :sessions => "sessions"}

  root :to => "home#index" end