NoamB/sorcery — Issue #214: Session destroy do not work with sub-domains
Author: nazarhussain
Created: 2012-02-15 13:51:12+00:00
State: open

Hi,

I am using Rails3.1 Engines and mounted it to a sub-domain. From main domain when i logout, user session exists on sub-domain engine.

My routes are such:

```
root :to => 'dashboard#index', :constraints => {:subdomain => "www"}
scope :subdomain => 'admin' do
mount MyAdmin::Engine => '/'
end
```

in my engine application controller

```
module MyAppAdmin
class ApplicationController < MyApp::ApplicationController

end
end
```

When i logout from main application, it do proper logout, but when i visit the sub-dmain the user is still logged in there. How can i fix it?